当前位置: 首页>>代码示例>>Java>>正文


Java GroupMarker类代码示例

本文整理汇总了Java中org.eclipse.jface.action.GroupMarker的典型用法代码示例。如果您正苦于以下问题:Java GroupMarker类的具体用法?Java GroupMarker怎么用?Java GroupMarker使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GroupMarker类属于org.eclipse.jface.action包,在下文中一共展示了GroupMarker类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: fillDialogMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Fill the dialog's menu. Subclasses may extend or override.
 * 
 * @param dialogMenu
 *            The dialog's menu.
 */
protected void fillDialogMenu(IMenuManager dialogMenu) {
	dialogMenu.add(new GroupMarker("SystemMenuStart")); //$NON-NLS-1$
	// RAP [bm]: Tracker
	// dialogMenu.add(new MoveAction());
	// dialogMenu.add(new ResizeAction());
	if (showPersistActions) {
		if (isUsing34API) {
			dialogMenu.add(new PersistLocationAction());
			dialogMenu.add(new PersistSizeAction());
		} else {
			dialogMenu.add(new PersistBoundsAction());
		}
	}
	dialogMenu.add(new Separator("SystemMenuEnd")); //$NON-NLS-1$
}
 
开发者ID:sergueik,项目名称:SWET,代码行数:22,代码来源:PopupDialog.java

示例2: fillMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
protected void fillMenu(final IMenuManager menuMgr) {
    menuMgr.add(new Separator("group0")); //$NON-NLS-1$
    menuMgr.add(new Separator("group1")); //$NON-NLS-1$
    menuMgr.add(new Separator("group2")); //$NON-NLS-1$
    menuMgr.add(new GroupMarker("group2.top")); //$NON-NLS-1$
    menuMgr.add(new GroupMarker("group2.middle")); //$NON-NLS-1$
    menuMgr.add(new GroupMarker("group2.bottom")); //$NON-NLS-1$
    menuMgr.add(new Separator("group3")); //$NON-NLS-1$
    menuMgr.add(new Separator("group4")); //$NON-NLS-1$
    menuMgr.add(new Separator("group5")); //$NON-NLS-1$
    menuMgr.add(new Separator("group6")); //$NON-NLS-1$
    menuMgr.add(new Separator("group7")); //$NON-NLS-1$
    menuMgr.add(new Separator("group8")); //$NON-NLS-1$
    menuMgr.add(new Separator("group9")); //$NON-NLS-1$
    menuMgr.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
}
 
开发者ID:Microsoft,项目名称:team-explorer-everywhere,代码行数:17,代码来源:QueueEditorPage.java

示例3: contextMenuAboutToShow

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
protected void contextMenuAboutToShow(IMenuManager mgr) {
	if (mgr.isEmpty()) {
		mgr.add(new GroupMarker(ICommonMenuConstants.GROUP_GOTO));
		mgr.add(new Separator(ICommonMenuConstants.GROUP_EDIT));
		mgr.add(new Separator(ICommonMenuConstants.GROUP_ADDITIONS));
		mgr.add(new Separator(ICommonMenuConstants.GROUP_PROPERTIES));

		mgr.appendToGroup(ICommonMenuConstants.GROUP_EDIT, actions.get(ACTION_COPY));
		mgr.appendToGroup(ICommonMenuConstants.GROUP_EDIT, actions.get(ACTION_CUT));
		mgr.appendToGroup(ICommonMenuConstants.GROUP_EDIT, actions.get(ACTION_PASTE));
		mgr.appendToGroup(ICommonMenuConstants.GROUP_EDIT, actions.get(ACTION_DELETE));
	}

	actionGroups.setContext(new ActionContext(getSite().getSelectionProvider().getSelection()));
	actionGroups.fillContextMenu(mgr);
}
 
开发者ID:grosenberg,项目名称:fluentmark,代码行数:17,代码来源:MkOutlinePage.java

示例4: fillContextMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
private void fillContextMenu(IMenuManager menu) {
	menu.add(new GroupMarker(ITextEditorActionConstants.GROUP_UNDO));
	menu.appendToGroup(ITextEditorActionConstants.GROUP_UNDO,
			(IAction) fGlobalActions.get(ITextEditorActionConstants.UNDO));

	menu.add(new Separator(ITextEditorActionConstants.GROUP_EDIT));
	menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT,
			(IAction) fGlobalActions.get(ITextEditorActionConstants.CUT));
	menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT,
			(IAction) fGlobalActions.get(ITextEditorActionConstants.COPY));
	menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT,
			(IAction) fGlobalActions.get(ITextEditorActionConstants.PASTE));
	menu.appendToGroup(ITextEditorActionConstants.GROUP_EDIT,
			(IAction) fGlobalActions.get(ITextEditorActionConstants.SELECT_ALL));

	menu.add(new Separator(IContextMenuConstants.GROUP_GENERATE));
	menu.appendToGroup(IContextMenuConstants.GROUP_GENERATE, (IAction) fGlobalActions.get("ContentAssistProposal")); //$NON-NLS-1$
}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:19,代码来源:EditTemplateDialog.java

示例5: editorContextMenuAboutToShow

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
@Override
public void editorContextMenuAboutToShow(IMenuManager menu) {

	super.editorContextMenuAboutToShow(menu);
	menu.insertAfter(IContextMenuConstants.GROUP_OPEN, new GroupMarker(IContextMenuConstants.GROUP_SHOW));

	ActionContext context = new ActionContext(getSelectionProvider().getSelection());
	fContextMenuGroup.setContext(context);
	fContextMenuGroup.fillContextMenu(menu);
	fContextMenuGroup.setContext(null);

	// Quick views
	IAction action = getAction(ITypeScriptEditorActionDefinitionIds.SHOW_OUTLINE);
	menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, action);
	action = getAction(ITypeScriptEditorActionDefinitionIds.OPEN_IMPLEMENTATION);
	menu.appendToGroup(IContextMenuConstants.GROUP_OPEN, action);

}
 
开发者ID:angelozerr,项目名称:typescript.java,代码行数:19,代码来源:TypeScriptEditor.java

示例6: fillMenuBar

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
@Override
protected void fillMenuBar(final IMenuManager menubar) {
    menubar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    IMenuManager windowMenu = new MenuManager("Window", IWorkbenchActionConstants.M_WINDOW);
    menubar.add(windowMenu);
    windowMenu.add(resetPerspectiveAction);
    windowMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    windowMenu.add(new Separator());
    windowMenu.add(preferencesAction);

    // plugin.xml in css menu.app defines a non-brandable icon.
    // through plugin.xml in this bundle, that help menu is hidden, and
    // we replace it here with another one (shorter) version
    IMenuManager helpMenu = new MenuManager("Help", "help-2");
    menubar.add(helpMenu);
    helpMenu.add(onlineHelpAction);
    helpMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    helpMenu.add(new Separator());
    helpMenu.add(raiseIssueAction);
    helpMenu.add(new Separator());
    helpMenu.add(aboutAction);
}
 
开发者ID:yamcs,项目名称:yamcs-studio,代码行数:23,代码来源:YamcsStudioActionBarAdvisor.java

示例7: createFileMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Creates the 'File' menu. <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
protected IMenuManager createFileMenu(IWorkbenchWindow window) {
  IMenuManager menu = new MenuManager(getString("_UI_Menu_File_label"), IWorkbenchActionConstants.M_FILE);
  menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START));

  IMenuManager newMenu = new MenuManager(getString("_UI_Menu_New_label"), "new");
  newMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));

  menu.add(newMenu);
  menu.add(new Separator());
  menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
  menu.add(new Separator());
  addToMenuAndRegister(menu, ActionFactory.CLOSE.create(window));
  addToMenuAndRegister(menu, ActionFactory.CLOSE_ALL.create(window));
  menu.add(new Separator());
  addToMenuAndRegister(menu, ActionFactory.SAVE.create(window));
  addToMenuAndRegister(menu, ActionFactory.SAVE_AS.create(window));
  addToMenuAndRegister(menu, ActionFactory.SAVE_ALL.create(window));
  menu.add(new Separator());
  addToMenuAndRegister(menu, ActionFactory.QUIT.create(window));
  menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));
  return menu;
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:28,代码来源:TriquetrumEditorAdvisor.java

示例8: createEditMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Creates the 'Edit' menu. <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
protected IMenuManager createEditMenu(IWorkbenchWindow window) {
  IMenuManager menu = new MenuManager(getString("_UI_Menu_Edit_label"), IWorkbenchActionConstants.M_EDIT);
  menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));

  addToMenuAndRegister(menu, ActionFactory.UNDO.create(window));
  addToMenuAndRegister(menu, ActionFactory.REDO.create(window));
  menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
  menu.add(new Separator());

  addToMenuAndRegister(menu, ActionFactory.CUT.create(window));
  addToMenuAndRegister(menu, ActionFactory.COPY.create(window));
  addToMenuAndRegister(menu, ActionFactory.PASTE.create(window));
  menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
  menu.add(new Separator());

  addToMenuAndRegister(menu, ActionFactory.DELETE.create(window));
  addToMenuAndRegister(menu, ActionFactory.SELECT_ALL.create(window));
  menu.add(new Separator());

  menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));

  menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
  menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
  return menu;
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:31,代码来源:TriquetrumEditorAdvisor.java

示例9: createFileMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Creates the 'File' menu.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected IMenuManager createFileMenu(IWorkbenchWindow window) {
	IMenuManager menu = new MenuManager(getString("_UI_Menu_File_label"),
	IWorkbenchActionConstants.M_FILE);    
	menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_START));
	
	IMenuManager newMenu = new MenuManager(getString("_UI_Menu_New_label"), "new");
	newMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	
	menu.add(newMenu);
	menu.add(new Separator());
	menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	menu.add(new Separator());
	addToMenuAndRegister(menu, ActionFactory.CLOSE.create(window));
	addToMenuAndRegister(menu, ActionFactory.CLOSE_ALL.create(window));
	menu.add(new Separator());
	addToMenuAndRegister(menu, ActionFactory.SAVE.create(window));
	addToMenuAndRegister(menu, ActionFactory.SAVE_AS.create(window));
	addToMenuAndRegister(menu, ActionFactory.SAVE_ALL.create(window));
	menu.add(new Separator());
	addToMenuAndRegister(menu, ActionFactory.QUIT.create(window));
	menu.add(new GroupMarker(IWorkbenchActionConstants.FILE_END));
	return menu;
}
 
开发者ID:mondo-project,项目名称:mondo-demo-wt,代码行数:30,代码来源:WTSpec4MEditorAdvisor.java

示例10: createContextMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/** Add context menu to axes_table */
private void createContextMenu()
{
    final MenuManager menu = new MenuManager();
    menu.setRemoveAllWhenShown(true);
    menu.addMenuListener(new IMenuListener()
    {
        @Override
        public void menuAboutToShow(IMenuManager manager)
        {
            menu.add(new AddAxisAction(operations_manager, model));
            if (!axes_table.getSelection().isEmpty())
                menu.add(new DeleteAxesAction(operations_manager, axes_table, model));
            if (model.getEmptyAxis() != null)
                menu.add(new RemoveUnusedAxesAction(operations_manager, model));
            menu.add(new Separator());
            menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
        }
    });
    final Table table = axes_table.getTable();
    table.setMenu(menu.createContextMenu(table));
}
 
开发者ID:kasemir,项目名称:org.csstudio.display.builder,代码行数:23,代码来源:AxesTableHandler.java

示例11: createProjectMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Creates and returns the Project menu.
 */
private MenuManager createProjectMenu() {
	MenuManager menu = new MenuManager(
			IDEWorkbenchMessages.Workbench_project,
			IWorkbenchActionConstants.M_PROJECT);
	menu.add(new Separator(IWorkbenchActionConstants.PROJ_START));

	menu.add(getOpenProjectItem());
	menu.add(getCloseProjectItem());
	menu.add(new GroupMarker(IWorkbenchActionConstants.OPEN_EXT));
	menu.add(new Separator());
	menu.add(buildAllAction);
	menu.add(buildProjectAction);
	addWorkingSetBuildActions(menu);
	menu.add(cleanAction);
	menu.add(toggleAutoBuildAction);
	menu.add(new GroupMarker(IWorkbenchActionConstants.BUILD_EXT));
	menu.add(new Separator());

	menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	menu.add(new GroupMarker(IWorkbenchActionConstants.PROJ_END));
	menu.add(new Separator());
	menu.add(projectPropertyDialogAction);
	return menu;
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:28,代码来源:ApplicationActionBarAdvisor.java

示例12: createEditMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Creates and returns the Edit menu.
 */
private MenuManager createEditMenu() {
	final MenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_edit, IWorkbenchActionConstants.M_EDIT);
	menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_START));
	menu.add(undoAction);
	menu.add(redoAction);
	menu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));
	menu.add(new Separator());
	menu.add(getCutItem());
	menu.add(getCopyItem());
	menu.add(getPasteItem());
	menu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));
	menu.add(new Separator());
	menu.add(getDeleteItem());
	menu.add(getSelectAllItem());
	menu.add(new Separator());
	menu.add(getFindItem());
	menu.add(new GroupMarker(IWorkbenchActionConstants.FIND_EXT));
	menu.add(new Separator());
	menu.add(new GroupMarker(IWorkbenchActionConstants.ADD_EXT));
	menu.add(new GroupMarker(IWorkbenchActionConstants.EDIT_END));
	menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
	return menu;
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:27,代码来源:GamaActionBarAdvisor.java

示例13: createHelpMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Creates and returns the Help menu.
 */
private MenuManager createHelpMenu() {
	final MenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_help, IWorkbenchActionConstants.M_HELP);
	addSeparatorOrGroupMarker(menu, "group.intro"); //$NON-NLS-1$
	menu.add(new GroupMarker("group.intro.ext")); //$NON-NLS-1$
	addSeparatorOrGroupMarker(menu, "group.main"); //$NON-NLS-1$
	menu.add(helpContentsAction);
	addSeparatorOrGroupMarker(menu, "group.assist"); //$NON-NLS-1$
	menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_START));
	menu.add(new GroupMarker("group.main.ext")); //$NON-NLS-1$
	addSeparatorOrGroupMarker(menu, "group.tutorials"); //$NON-NLS-1$
	addSeparatorOrGroupMarker(menu, "group.tools"); //$NON-NLS-1$
	addSeparatorOrGroupMarker(menu, "group.updates"); //$NON-NLS-1$
	menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));
	addSeparatorOrGroupMarker(menu, IWorkbenchActionConstants.MB_ADDITIONS);
	// about should always be at the bottom
	menu.add(new Separator("group.about")); //$NON-NLS-1$

	final ActionContributionItem aboutItem = new ActionContributionItem(aboutAction);
	aboutItem.setVisible(!Util.isMac());
	menu.add(aboutItem);
	menu.add(new GroupMarker("group.about.ext")); //$NON-NLS-1$
	menu.add(openPreferencesAction);
	return menu;
}
 
开发者ID:gama-platform,项目名称:gama,代码行数:28,代码来源:GamaActionBarAdvisor.java

示例14: prepareExportMenu

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
protected MenuManager prepareExportMenu(ISharedImages sharedImages) {
    final MenuManager exportMenu =
            new MenuManager(DisplayMessages.getMessage("action.title.export"), sharedImages.getImageDescriptor("IMG_ETOOL_EXPORT_WIZ"),
                    "Export");

    exportMenu.add(getAction(ExportToDDLAction.ID));
    exportMenu.add(getAction(ExportToImageAction.ID));

    // #deleted
    //exportMenu.add(this.getAction(ExportToExcelAction.ID));
    //exportMenu.add(this.getAction(ExportToHtmlAction.ID));
    //exportMenu.add(this.getAction(ExportToDictionaryAction.ID));
    //exportMenu.add(this.getAction(ExportToTranslationDictionaryAction.ID));
    //exportMenu.add(this.getAction(ExportToTestDataAction.ID));
    //exportMenu.add(this.getAction(ExportToJavaAction.ID));

    exportMenu.add(new GroupMarker("export"));

    return exportMenu;
}
 
开发者ID:dbflute-session,项目名称:erflute,代码行数:21,代码来源:ERVirtualDiagramPopupMenuManager.java

示例15: fillMenuBar

import org.eclipse.jface.action.GroupMarker; //导入依赖的package包/类
/**
 * Create the file, edit, window, view, and help menu items.
 * 
 * @param menuBar The application's menu bar.
 */
@Override
protected void fillMenuBar(IMenuManager menuBar) {
	IMenuManager menu = createFileMenu();
	if (menu != null) menuBar.add(menu);
	menu = createEditMenu();
	if (menu != null) menuBar.add(menu);
	menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	menu = createWindowMenu();
	if (menu != null) menuBar.add(menu);
	menu = createViewMenu();
	if (menu != null) menuBar.add(menu);
	menu = createAdminMenu();
	if (menu != null) menuBar.add(menu);
	menu = createHelpMenu();
	if (menu != null) menuBar.add(menu);
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:22,代码来源:EnsembleActionBarAdvisor.java


注:本文中的org.eclipse.jface.action.GroupMarker类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。