如何删除 Eclipse RCP 中不需要的帮助菜单?

发布于 2024-11-03 16:09:10 字数 176 浏览 3 评论 0原文

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 ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沉默的熊 2024-11-10 16:09:10

听起来好像帮助 UI 插件包含在您的运行配置中

有几件事需要检查...

-- 查看应用程序的 .product 文件,并查看定义了哪些插件,并查看组织是否.eclipse.help.ui 插件已定义(org.eclipse.help 可能已定义,因为 org.eclipse.ui.workbench 需要它,但这不会导致菜单出现)

-- 如果您在 Eclipse 中运行,打开运行-->运行配置,选择您正在运行的 Eclipse 应用程序并检查插件选项卡。如果它以“所有工作区和启用的目标插件”启动,那么这也将获取帮助 UI 插件。即使没有设置此选项,也要检查勾选的插件以查看是否定义了 org.eclipse.help.ui。

此配置应该仅使用您的应用程序所需的插件。如果它是通过使用 .product 文件中的“启动 Eclipse 应用程序”选项创建的,则创建的配置应与其中定义的插件匹配。

还值得确保没有其他插件使用 org.eclipse.help.ui - 通过删除它,然后按运行配置对话框中的“验证插件”按钮,可以轻松看到这一点,它会向您显示如果移除后有任何损坏

It's sounds like the help UI plug-ins are being included within your run configuration

Couple of things to check...

-- 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)

-- 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.

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.

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文