@Override protected void addHyperlinks(List<IHyperlink> hyperlinksCollector, IRegion wordRegion, SelectionDispatchAction openAction, IJavaElement element, boolean qualify, JavaEditor editor) { if (canOpenImplementation(element) && SelectionConverter.canOperateOn(editor)) { hyperlinksCollector.add(new JavaElementImplementationHyperlink(wordRegion, openAction, element, qualify, editor)); } }
/** * 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 ExtractInterfaceAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 ExtractClassAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 InlineTempAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 ConvertNestedToTopAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 InferTypeArgumentsAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 java editor */ public InlineMethodAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(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 Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public OpenTypeHierarchyAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * * @param editor the java editor */ public InlineConstantAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 OpenAttachedJavadocAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 Java editor */ public ShowInPackageViewAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
public MoveStaticMembersAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor */ public InlineMethodAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 InlineTempAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 ConvertNestedToTopAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * 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 PushDownAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Creates an <code>OpenImplementationAction</code>. Note: This constructor is for internal use * only. Clients should not call this constructor. * * @param editor the editor * @noreference This constructor is not intended to be referenced by clients. */ public OpenImplementationAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor) && fEditor.getSelectionProvider().getSelection() instanceof ITextSelection); }