public void selectionChanged(IStructuredSelection selection) { try { setEnabled(canEnable(selection)); } catch (JavaModelException exception) { if (JavaModelUtil.isExceptionToBeLogged(exception)) JavaPlugin.log(exception); setEnabled(false); } }
@Override public void selectionChanged(IStructuredSelection selection) { try { setEnabled(canEnable(selection)); } catch (JavaModelException exception) { if (JavaModelUtil.isExceptionToBeLogged(exception)) JavaPlugin.log(exception); setEnabled(false); } }
@Override public void selectionChanged(IStructuredSelection selection) { try { setEnabled(canEnable(selection)); } catch (JavaModelException exception) { if (JavaModelUtil.isExceptionToBeLogged(exception)) JavaPlugin.log(exception); setEnabled(false); } }
/** * Note: This constructor is for internal use only. Clients should not call this * constructor. * @param editor the compilation unit editor * * @noreference This constructor is not intended to be referenced by clients. */ public OverrideMethodsAction(final CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(checkEnabledEditor()); }
/** * Note: This constructor is for internal use only. Clients should not call this * constructor. * @param editor the compilation unit editor */ public OverrideMethodsAction(final CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(checkEnabledEditor()); }
/** * Note: This constructor is for internal use only. Clients should not call this * constructor. * @param editor the compilation unit editor * * @noreference This constructor is not intended to be referenced by clients. */ public OverrideMethodsAction(final CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(checkEnabledEditor()); }