1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2011-04-11 22:32:57 +00:00
parent db44d771bb
commit 2c7f55ae19

View file

@ -47,7 +47,6 @@ public final class ASTProvider {
* Wait flag. * Wait flag.
*/ */
public static final class WAIT_FLAG { public static final class WAIT_FLAG {
String fName; String fName;
private WAIT_FLAG(String name) { private WAIT_FLAG(String name) {
@ -209,7 +208,6 @@ public final class ASTProvider {
return false; return false;
String id= ref.getId(); String id= ref.getId();
return CUIPlugin.EDITOR_ID.equals(id) || ref.getPart(false) instanceof CEditor; return CUIPlugin.EDITOR_ID.equals(id) || ref.getPart(false) instanceof CEditor;
} }
} }
@ -254,12 +252,12 @@ public final class ASTProvider {
private void activeEditorChanged(IWorkbenchPart editor) { private void activeEditorChanged(IWorkbenchPart editor) {
ICElement cElement= null; ICElement cElement= null;
if (editor instanceof CEditor) { if (editor instanceof CEditor) {
cElement= ((CEditor)editor).getInputCElement(); cElement= ((CEditor) editor).getInputCElement();
} }
synchronized (this) { synchronized (this) {
fActiveEditor= editor; fActiveEditor= editor;
fTimeStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP; fTimeStamp= IDocumentExtension4.UNKNOWN_MODIFICATION_STAMP;
fCache.setActiveElement((ITranslationUnit)cElement); fCache.setActiveElement((ITranslationUnit) cElement);
} }
} }
@ -273,7 +271,7 @@ public final class ASTProvider {
if (cElement == null) if (cElement == null)
return; return;
Assert.isTrue(cElement instanceof ITranslationUnit); Assert.isTrue(cElement instanceof ITranslationUnit);
fCache.aboutToBeReconciled((ITranslationUnit)cElement); fCache.aboutToBeReconciled((ITranslationUnit) cElement);
updateModificationStamp(); updateModificationStamp();
} }