public OpenCallHierarchyAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor));
public OpenCallHierarchyAction(IWorkbenchSite site) { super(site); setText(CallHierarchyMessages.OpenCallHierarchyAction_label); setToolTipText(CallHierarchyMessages.OpenCallHierarchyAction_tooltip); setDescription(CallHierarchyMessages.OpenCallHierarchyAction_description); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.CALL_HIERARCHY_OPEN_ACTION);
    public OpenCallHierarchyAction(JavaEditor editor) {        this(editor.getEditorSite());        fEditor= editor;        setEnabled(SelectionConverter.canOperateOn(fEditor));    }