1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2010-07-25 00:01:34 +00:00
parent abf3f62731
commit f5f72f4e0b

View file

@ -45,7 +45,7 @@ public abstract class RefactoringAction extends Action {
if (editor instanceof ITextEditor) {
fEditor= (ITextEditor) editor;
}
setEnabled(fEditor!=null);
setEnabled(fEditor != null);
}
public void setSite(IWorkbenchSite site) {
@ -56,7 +56,7 @@ public abstract class RefactoringAction extends Action {
@Override
public final void run() {
EclipseObjects.getActivePage().saveAllEditors(true);
if(EclipseObjects.getActivePage().getDirtyEditors().length != 0) {
if (EclipseObjects.getActivePage().getDirtyEditors().length != 0) {
return;
}
if (fEditor != null) {
@ -69,8 +69,7 @@ public abstract class RefactoringAction extends Action {
run(fEditor.getSite(), wc, (ITextSelection) s);
}
}
}
else if (fSite != null) {
} else if (fSite != null) {
if (fElement != null) {
run(fSite, fElement);
}