本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例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 () ) );
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例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;
}
示例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 );
}
示例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;
}