53545556575859606162
sourceMenu.appendToGroup(SOURCE_MENU__ADDITIONS, registerEditorHandler(COMMAND_RunGoFix, RunGoFixOperation.handler)); sourceMenu.appendToGroup(SOURCE_MENU__FORMAT, registerEditorHandler(COMMAND_RunGoFmt, RunGoFmtOperation.handler)); } }
4243444546474849
assert editMenu != null; if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$ editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$ } IAction validateAction = new ValidateAction(page); editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$ } }
4647484950515253
231232233234235236237238239240241
} public void init(IPageSite site) { super.init(site); IMenuManager menuManager = site.getActionBars().getMenuManager(); menuManager.appendToGroup(IContextMenuConstants.GROUP_PROPERTIES, new OpenSearchPreferencesAction()); } public void dispose() { fActionGroup.dispose(); super.dispose();
40414243444546474849
edit.add(new FormatAction()); } // Add Export action IMenuManager file = menu.findMenuUsingPath("file"); if (file != null) { file.appendToGroup("import.ext", new ExportHTMLAction()); } } }