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


Java IWorkbenchActionConstants.M_HELP属性代码示例

本文整理汇总了Java中org.eclipse.ui.IWorkbenchActionConstants.M_HELP属性的典型用法代码示例。如果您正苦于以下问题:Java IWorkbenchActionConstants.M_HELP属性的具体用法?Java IWorkbenchActionConstants.M_HELP怎么用?Java IWorkbenchActionConstants.M_HELP使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在org.eclipse.ui.IWorkbenchActionConstants的用法示例。


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

示例1: createHelpMenu

/**
 * 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,代码行数:27,代码来源:GamaActionBarAdvisor.java

示例2: createHelpMenu

/**
 * Create the "Help" menu.
 * 
 * @param window
 * @return the help MenuManager
 */
protected IMenuManager createHelpMenu() {
	IMenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_help, IWorkbenchActionConstants.M_HELP);
	menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_START));
       menu.add(new Separator());
       menu.add(getGlobalAction(ActionFactory.DYNAMIC_HELP));
       menu.add(getGlobalAction(ActionFactory.HELP_CONTENTS));
	menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));
       menu.add(new Separator());
       IWorkbenchAction about = getGlobalAction(ActionFactory.ABOUT);
	ActionContributionItem aboutItem = new ActionContributionItem(about);
	menu.add(aboutItem);
	if (Platform.OS_MACOSX.equals(Platform.getOS())) {
		aboutItem.setVisible(false);
	}
	return menu;
}
 
开发者ID:nasa,项目名称:OpenSPIFe,代码行数:23,代码来源:EnsembleActionBarAdvisor.java

示例3: createHelpMenu

/**
 * 创建帮助菜单
 * @return 返回帮助菜单的 menu manager;
 */
private MenuManager createHelpMenu() {
	MenuManager menu = new MenuManager(Messages.getString("ts.ApplicationActionBarAdvisor.menu.help"),
			IWorkbenchActionConstants.M_HELP);
	// menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_START));
	menu.add(helpAction);
	// menu.add(helpSearchAction);
	// menu.add(dynamicHelpAction);
	// menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));
	menu.add(new GroupMarker("help.keyAssist"));
	menu.add(new Separator());
	menu.add(new GroupMarker("help.updatePlugin"));
	menu.add(new Separator());
	menu.add(new GroupMarker("help.license"));
	// 关于菜单需要始终显示在最底端
	menu.add(new GroupMarker("group.about"));
	// ActionContributionItem aboutItem = new ActionContributionItem(aboutAction);
	// aboutItem.setVisible(!Util.isMac());
	// menu.add(aboutItem);
	return menu;
}
 
开发者ID:heartsome,项目名称:translationstudio8,代码行数:24,代码来源:ApplicationActionBarAdvisor.java

示例4: fillMenuBar

protected void fillMenuBar(IMenuManager menuBar) {
    MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);
    MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
    
    menuBar.add(fileMenu);
    // Add a group marker indicating where action set menus will appear.
    menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    menuBar.add(helpMenu);
    
    // File
    fileMenu.add(newWindowAction);
    fileMenu.add(new Separator());
    fileMenu.add(messagePopupAction);
    fileMenu.add(openViewAction);
    fileMenu.add(new Separator());
    fileMenu.add(exitAction);
    
    // Help
    helpMenu.add(aboutAction);
}
 
开发者ID:andydunkel,项目名称:EclipseBrandingExample,代码行数:20,代码来源:ApplicationActionBarAdvisor.java

示例5: fillMenuBar

protected void fillMenuBar(IMenuManager menuBar)
{
    MenuManager fileMenu = new MenuManager("&Qpid Manager", "qpidmanager");
    MenuManager helpMenu = new MenuManager("&Help", IWorkbenchActionConstants.M_HELP);
    
    menuBar.add(fileMenu);
    // Add a group marker indicating where action set menus will appear.
    menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    menuBar.add(helpMenu);
    
    fileMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
    fileMenu.add(new Separator());
    fileMenu.add(new GroupMarker("mbeanactions"));
    fileMenu.add(new Separator());
    fileMenu.add(exitAction);
    
    // Help
    helpMenu.add(_aboutAction);
}
 
开发者ID:wso2,项目名称:andes,代码行数:19,代码来源:ApplicationActionBarAdvisor.java

示例6: createHelpMenu

/**
	 * Creates and returns the Help menu.
	 */
	private MenuManager createHelpMenu( )
	{
		MenuManager menu = new MenuManager( DesignerWorkbenchMessages.Workbench_help,
				IWorkbenchActionConstants.M_HELP );

		// See if a welcome or introduction page is specified
		if ( introAction != null )
			menu.add( introAction );
//		else if ( quickStartAction != null )
//			menu.add( quickStartAction );
		menu.add( helpContentsAction );

//		if ( tipsAndTricksAction != null )
//			menu.add( tipsAndTricksAction );

		menu.add( new GroupMarker( "group.tutorials" ) ); //$NON-NLS-1$
		menu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );
		menu.add( new Separator( "group.about" ) ); //$NON-NLS-1$
		menu.add( aboutAction );
		menu.add( new GroupMarker( "group.about.ext" ) ); //$NON-NLS-1$

		return menu;
	}
 
开发者ID:eclipse,项目名称:birt,代码行数:26,代码来源:DesignerActionBarAdvisor.java

示例7: fillMenuBar

@Override
protected void fillMenuBar ( final IMenuManager menuBar )
{
    final MenuManager fileMenu = new MenuManager ( "&File", IWorkbenchActionConstants.M_FILE );
    final MenuManager windowMenu = new MenuManager ( "&Window", IWorkbenchActionConstants.M_WINDOW );
    final MenuManager helpMenu = new MenuManager ( "&Help", IWorkbenchActionConstants.M_HELP );
    final MenuManager fileNewMenu = new MenuManager ( "&New", IWorkbenchActionConstants.NEW_EXT );
    final MenuManager windowNewMenu = new MenuManager ( "Show &View", IWorkbenchActionConstants.SHOW_EXT );

    menuBar.add ( fileMenu );
    // Add a group marker indicating where action set menus will appear.
    menuBar.add ( new GroupMarker ( IWorkbenchActionConstants.MB_ADDITIONS ) );
    menuBar.add ( windowMenu );
    menuBar.add ( helpMenu );

    // File
    fileMenu.add ( this.newWindowAction );
    fileMenu.add ( new Separator () );
    fileMenu.add ( fileNewMenu );
    fileMenu.add ( getAction ( ActionFactory.SAVE.getId () ) );
    fileMenu.add ( getAction ( ActionFactory.NEW_EDITOR.getId () ) );
    fileMenu.add ( new GroupMarker ( IWorkbenchActionConstants.OPEN_EXT ) );

    fileMenu.add ( new Separator () );
    fileMenu.add ( this.exitAction );

    fileNewMenu.add ( this.newWizards );

    // Window
    windowNewMenu.add ( this.showViews );
    windowMenu.add ( windowNewMenu );
    windowMenu.add ( getAction ( ActionFactory.PREFERENCES.getId () ) );

    // Help
    helpMenu.add ( this.aboutAction );
    helpMenu.add ( getAction ( ActionFactory.INTRO.getId () ) );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:37,代码来源:ApplicationActionBarAdvisor.java

示例8: createHelpMenu

/**
 * Creates the 'Help' menu. <!-- begin-user-doc --> <!-- end-user-doc -->
 * 
 * @generated
 */
protected IMenuManager createHelpMenu(IWorkbenchWindow window) {
  IMenuManager menu = new MenuManager(getString("_UI_Menu_Help_label"), IWorkbenchActionConstants.M_HELP);
  // Welcome or intro page would go here
  // Help contents would go here
  // Tips and tricks page would go here
  menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_START));
  menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));
  menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
  return menu;
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:15,代码来源:TriquetrumEditorAdvisor.java

示例9: fillMenuBar

@Override
protected void fillMenuBar(final IMenuManager menuBar) {
	final MenuManager fileMenu = new MenuManager("&Datei", IWorkbenchActionConstants.M_FILE);
	final MenuManager helpMenu = new MenuManager("&Hilfe", IWorkbenchActionConstants.M_HELP);

	menuBar.add(fileMenu);
	// Add a group marker indicating where action set menus will appear.
	menuBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	menuBar.add(helpMenu);
}
 
开发者ID:FI13,项目名称:afbb-bibo,代码行数:10,代码来源:ApplicationActionBarAdvisor.java

示例10: createHelpMenu

/**
 * Creates the 'Help' menu.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
protected IMenuManager createHelpMenu(IWorkbenchWindow window) {
	IMenuManager menu = new MenuManager(getString("_UI_Menu_Help_label"), IWorkbenchActionConstants.M_HELP);
	// Welcome or intro page would go here
	// Help contents would go here
	// Tips and tricks page would go here
	menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_START));
	menu.add(new GroupMarker(IWorkbenchActionConstants.HELP_END));
	menu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
	return menu;
}
 
开发者ID:mondo-project,项目名称:mondo-demo-wt,代码行数:16,代码来源:WTSpec4MEditorAdvisor.java

示例11: createHelpMenu

/**
 * Creates and returns the Help menu.
 */
private MenuManager createHelpMenu() {
	MenuManager menu = new MenuManager(IDEWorkbenchMessages.Workbench_help,
			IWorkbenchActionConstants.M_HELP);
	addSeparatorOrGroupMarker(menu, "group.intro"); //$NON-NLS-1$
	// See if a welcome or intro page is specified
	if (introAction != null) {
		menu.add(introAction);
	} else if (quickStartAction != null) {
		menu.add(quickStartAction);
	}
	menu.add(new GroupMarker("group.intro.ext")); //$NON-NLS-1$
	addSeparatorOrGroupMarker(menu, "group.main"); //$NON-NLS-1$
	menu.add(helpContentsAction);
	menu.add(helpSearchAction);
	menu.add(dynamicHelpAction);
	addSeparatorOrGroupMarker(menu, "group.assist"); //$NON-NLS-1$
	// See if a tips and tricks page is specified
	if (tipsAndTricksAction != null) {
		menu.add(tipsAndTricksAction);
	}
	// HELP_START should really be the first item, but it was after
	// quickStartAction and tipsAndTricksAction in 2.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$

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

示例12: createHelpMenu

/**
 * 创建帮助菜单
 * @return 返回帮助菜单的 menu manager;
 */
private MenuManager createHelpMenu() {
	MenuManager menu = new MenuManager(Messages.getString("ts.ApplicationActionBarAdvisor.menu.help"),
			IWorkbenchActionConstants.M_HELP);
	menu.add(helpAction);
	menu.add(new GroupMarker("help.keyAssist"));
	menu.add(new Separator());
	menu.add(new GroupMarker("help.updatePlugin"));
	menu.add(new Separator());
	menu.add(new GroupMarker("help.license"));
	// 关于菜单需要始终显示在最底端
	menu.add(new GroupMarker("group.about"));
	return menu;
}
 
开发者ID:heartsome,项目名称:tmxeditor8,代码行数:17,代码来源:ApplicationActionBarAdvisor.java

示例13: fillMenuBar

@Override
protected void fillMenuBar ( final IMenuManager menuBar )
{
    final MenuManager fileMenu = new MenuManager ( "&File", IWorkbenchActionConstants.M_FILE );
    final MenuManager windowMenu = new MenuManager ( "&Window", IWorkbenchActionConstants.M_WINDOW );
    final MenuManager helpMenu = new MenuManager ( "&Help", IWorkbenchActionConstants.M_HELP );
    final MenuManager fileNewMenu = new MenuManager ( "&New", IWorkbenchActionConstants.NEW_EXT );
    final MenuManager windowNewMenu = new MenuManager ( "Show &View", IWorkbenchActionConstants.SHOW_EXT );

    // Main

    menuBar.add ( fileMenu );
    menuBar.add ( new GroupMarker ( IWorkbenchActionConstants.MB_ADDITIONS ) );
    menuBar.add ( windowMenu );
    menuBar.add ( helpMenu );

    // File
    fileMenu.add ( this.newWindowAction );
    fileMenu.add ( new Separator () );
    fileMenu.add ( fileNewMenu );
    fileMenu.add ( getAction ( ActionFactory.SAVE.getId () ) );
    fileMenu.add ( getAction ( ActionFactory.NEW_EDITOR.getId () ) );
    fileMenu.add ( new GroupMarker ( IWorkbenchActionConstants.OPEN_EXT ) );

    fileMenu.add ( new Separator () );
    fileMenu.add ( this.exitAction );

    fileNewMenu.add ( this.newWizards );

    // Window
    windowNewMenu.add ( this.showViews );
    windowMenu.add ( windowNewMenu );
    windowMenu.add ( getAction ( ActionFactory.PREFERENCES.getId () ) );

    // Help
    helpMenu.add ( getAction ( ActionFactory.INTRO.getId () ) );
    helpMenu.add ( this.showHelpAction ); // NEW
    helpMenu.add ( this.searchHelpAction ); // NEW
    helpMenu.add ( this.dynamicHelpAction ); // NEW
    helpMenu.add ( new GroupMarker ( IWorkbenchActionConstants.MB_ADDITIONS ) );
    helpMenu.add ( new Separator () );
    helpMenu.add ( this.aboutAction );
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:43,代码来源:ApplicationActionBarAdvisor.java

示例14: createHelpMenu

/**
 * Creates and returns the Help menu.
 */
private MenuManager createHelpMenu()
{
  MenuManager menu =
      new MenuManager(IDEWorkbenchMessages.Workbench_help,
          IWorkbenchActionConstants.M_HELP);
  addSeparatorOrGroupMarker(menu, "group.intro"); //$NON-NLS-1$
  // See if a welcome or intro page is specified
  if (introAction != null)
  {
    menu.add(introAction);
  }
  else if (quickStartAction != null)
  {
    menu.add(quickStartAction);
  }
  menu.add(new GroupMarker("group.intro.ext")); //$NON-NLS-1$
  addSeparatorOrGroupMarker(menu, "group.main"); //$NON-NLS-1$
  menu.add(helpContentsAction);
  menu.add(helpSearchAction);
  menu.add(dynamicHelpAction);
  addSeparatorOrGroupMarker(menu, "group.assist"); //$NON-NLS-1$
  // See if a tips and tricks page is specified
  if (tipsAndTricksAction != null)
  {
    menu.add(tipsAndTricksAction);
  }
  // HELP_START should really be the first item, but it was after
  // quickStartAction and tipsAndTricksAction in 2.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$

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


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