/** * Note: This constructor is for internal use only. Clients should not call this constructor. * * @param editor the Script editor */ public OpenEditorActionGroup(ScriptEditor editor) { fIsEditorOwner = true; fOpen = new OpenAction(editor); fOpen.setActionDefinitionId(IScriptEditorActionDefinitionIds.OPEN_EDITOR); editor.setAction("OpenEditor", fOpen); // $NON-NLS-1$ fSite = editor.getEditorSite(); initialize(fSite.getSelectionProvider()); }
/** Note: This constructor is for internal use only. Clients should not call this constructor. */ public OpenCallHierarchyAction(ScriptEditor editor) { this(editor.getEditorSite()); fEditor = editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }