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