/** * @see * org.eclipse.ui.texteditor.AbstractTextEditor#editorContextMenuAboutToShow(org.eclipse.jface.action.IMenuManager) * @since 3.1 */ @Override protected void editorContextMenuAboutToShow(IMenuManager menu) { super.editorContextMenuAboutToShow(menu); IAction variablePicker = getAction(IXPathEditorActionConstants.VARIABLE_PICKER); menu.add(new Separator()); menu.add(variablePicker); // menu.appendToGroup(IWorkbenchActionConstants.MB_ADDITIONS, new // Separator(ITextEditorActionConstants.GROUP_SETTINGS)); // menu.appendToGroup(ITextEditorActionConstants.GROUP_SETTINGS, preferencesAction); // // menu.appendToGroup(ITextEditorActionConstants.GROUP_SAVE, new // Separator(ITextEditorActionConstants.GROUP_OPEN)); // MenuManager showInSubMenu= new MenuManager(getShowInMenuLabel()); // // showInSubMenu.add(ContributionItemFactory.VIEWS_SHOW_IN.create(getEditorSite().getWorkbenchWindow())); // menu.appendToGroup(ITextEditorActionConstants.GROUP_OPEN, showInSubMenu); }