@Override public void selectionChanged(ITextSelection selection) { setEnabled(getCompilationUnit(fEditor) != null); }
public void run(ITextSelection selection) { ICompilationUnit cu= getCompilationUnit(fEditor); if (cu != null) { run(cu); } }
@Override public void run(ITextSelection selection) { ICompilationUnit cu= getCompilationUnit(fEditor); if (cu != null) { run(cu); } }
@Override public void run(ITextSelection selection) { ICompilationUnit cu= getCompilationUnit(fEditor); if (cu != null) { run(cu); } }
@Override public void selectionChanged(ITextSelection selection) { setEnabled(getCompilationUnit(fEditor) != null); }
public void selectionChanged(ITextSelection selection) { setEnabled(getCompilationUnit(fEditor) != null); }
/** * Note: This constructor is for internal use only. Clients should not call * this constructor. * * @param editor * the Java editor */ public CleanUpAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getCompilationUnit(fEditor) != null); }
/** * Note: This constructor is for internal use only. Clients should not call * this constructor. * * @param editor * the Java editor */ public CleanUpAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getCompilationUnit(fEditor) != null); }
/** * Note: This constructor is for internal use only. Clients should not call * this constructor. * * @param editor * the Java editor */ public CleanUpAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getCompilationUnit(fEditor) != null); }