mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Cosmetics.
This commit is contained in:
parent
abf3f62731
commit
f5f72f4e0b
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue