/** * Note: This constructor is for internal use only. Clients should not call this * constructor. * * @param editor the compilation unit editor */ public AddGetterSetterAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(editor) != null); fEditor.getEditorSite(); }
@Override public void partActivated(IWorkbenchPartReference partRef) { IWorkbenchPart fPart= fEditor.getEditorSite().getPart(); if (partRef.getPart(false) == fPart) { updateVisibility(); } }
/** * Note: This constructor is for internal use only. Clients should not call this * constructor. * * @param editor the compilation unit editor */ public AddUnimplementedConstructorsAction(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 GenerateHashCodeEqualsAction(final CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled( (fEditor != null && SelectionConverter.canOperateOn(fEditor))); }
/** * 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 ExternalizeStringsAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(fEditor != null && SelectionConverter.canOperateOn(fEditor)); }
/** * 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 * * @noreference This constructor is not intended to be referenced by clients. */ public SortMembersAction(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 SortMembersAction(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 AddJavaDocStubAction(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 AddDelegateMethodsAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(editor) != null); }
/** * 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 SortMembersAction(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()); }
/** * 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 AddJavaDocStubAction(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 ExternalizeStringsAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(fEditor != null && SelectionConverter.canOperateOn(fEditor)); }
/** * 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 AddJavaDocStubAction(CompilationUnitEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(checkEnabledEditor()); }
@Override public void partActivated(IWorkbenchPartReference partRef) { IWorkbenchPart fPart= fEditor.getEditorSite().getPart(); if (partRef.getPart(false) == fPart) { updateVisibility(); } }
public void partDeactivated(IWorkbenchPartReference partRef) { IWorkbenchPart fPart= fEditor.getEditorSite().getPart(); if (fPopup != null && ! fPopup.isDisposed() && partRef.getPart(false) == fPart) { fPopup.setVisible(false); } }
@Override public void partDeactivated(IWorkbenchPartReference partRef) { IWorkbenchPart fPart= fEditor.getEditorSite().getPart(); if (fPopup != null && ! fPopup.isDisposed() && partRef.getPart(false) == fPart) { fPopup.setVisible(false); } }
@Override public void partDeactivated(IWorkbenchPartReference partRef) { IWorkbenchPart fPart= fEditor.getEditorSite().getPart(); if (fPopup != null && ! fPopup.isDisposed() && partRef.getPart(false) == fPart) { fPopup.setVisible(false); } }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the compilation unit editor */ public SurroundWithTryCatchAction(CompilationUnitEditor editor) { super(editor.getEditorSite()); setText(RefactoringMessages.SurroundWithTryCatchAction_label); fEditor= editor; setEnabled((fEditor != null && SelectionConverter.getInputAsCompilationUnit(fEditor) != null)); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.SURROUND_WITH_TRY_CATCH_ACTION); }