@Override public void setEnabled(boolean enabled) { fOpenAction.setEnabled(enabled); }
@Override public void setEnabled(boolean enabled) { fOpenAction.setEnabled(enabled); }
public void setEnabled(boolean enabled) { fOpenAction.setEnabled(enabled); }
@Override public void selectionChanged(IStructuredSelection selection) { setEnabled(checkEnabled(selection)); }
@Override public void selectionChanged(IStructuredSelection selection) { setEnabled(checkEnabled(selection)); }
public void selectionChanged(IStructuredSelection selection) { setEnabled(checkEnabled(selection)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public OpenAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setText(ActionMessages.OpenAction_declaration_label); setEnabled(EditorUtility.getEditorInputJavaElement(fEditor, false) != null); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the Java editor */ public OpenAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setText(ActionMessages.OpenAction_declaration_label); setEnabled(EditorUtility.getEditorInputJavaElement(fEditor, false) != null); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public OpenAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setText(ActionMessages.OpenAction_declaration_label); setEnabled(EditorUtility.getEditorInputJavaElement(fEditor, false) != null); }