问题描述
您好StackOverflow小组! 我创建了一个Eclipse RCP桌面应用程序,该应用程序在菜单栏中有一个名为帮助"的附加菜单.我没有通过任何常规方法来创建它,例如添加actionSets扩展,或从项目的ActionBarAdvisor.java创建和注册操作.我不再需要了请建议我如何将其从菜单栏中删除?
Hi StackOverflow team ! I've created an Eclipse RCP desktop application which has an extra menu called 'Help' in the menubar. I didn't create it from any of usual ways like adding actionSets extention, or creating and registering the actions from ActionBarAdvisor.java of the project. I don't need it anymore. Please, suggest me how can i remove it from my Menubar ?
推荐答案
听起来,帮助UI插件已包含在您的运行配置中
It's sounds like the help UI plug-ins are being included within your run configuration
要检查的事物...
-查看应用程序的.product文件,查看定义了哪些插件,并查看是否定义了org.eclipse.help.ui插件(因为org.eclipse.ui.workbench需要它,但这不会导致菜单出现)
-- Have a look at your application's .product file, and see which plug-ins are defined, and see if the org.eclipse.help.ui plug-in is defined (org.eclipse.help is probably defined since org.eclipse.ui.workbench requires it, but this won't cause the menu to appear)
-如果您正在Eclipse中运行,请打开运行->运行配置",选择您正在运行的Eclipse应用程序,然后检查插件"选项卡.如果使用所有工作空间和已启用的目标插件"启动,那么这也将使用帮助UI插件.即使未将其设置为该选项,也请检查选中的插件以查看是否定义了org.eclipse.help.ui.
-- If you are running within Eclipse, open Run --> Run Configurations, select the Eclipse application you are running and check the plug-ins tab. If it is launching with 'all workspace and enabled target plug-ins' then this will be picking up the help UI plug-ins too. Even if it's not set to this option, check the plug-ins ticked to see if the org.eclipse.help.ui is defined.
此配置应仅使用您的应用程序所需的插件.如果是通过使用.product文件中的启动Eclipse应用程序"选项创建的,则创建的配置应与其中定义的插件匹配.
This configuration should only use the plug-ins required for your application. If it was created by using the 'Launch an Eclipse Application' option from within the .product file, the configuration created should match the plug-ins defined in that.
还有必要确保没有其他插件使用org.eclipse.help.ui-可以很容易地看到它,方法是将其删除,然后在运行配置对话框中按"Validate Plug-ins"按钮,会显示删除后是否损坏了任何东西
It's also worth making sure that no other plug-ins use org.eclipse.help.ui - this can be easily seen by removing it, and then pressing the 'Validate Plug-ins' button within the run configuration dialog, it will show you if anything has been broken after removing it
这篇关于如何在Eclipse RCP中删除不需要的帮助菜单?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!