Eclipse RCP 应用程序:如何禁用特定扩展?
我正在使用 Eclipse HELIOS 编写富客户端应用程序。 以下条目会自动添加到我的应用程序“PERSPECTIVES MENU”中: “Java、Java 浏览、Java 类型层次结构、团队同步”。 我需要摆脱他们。
我使用扩展点 =“org.eclipse.ui.activities”来禁用不需要的扩展(例如酷栏上出现的编辑器和搜索选项)
我设法通过添加“org.eclipse.activities”来摆脱“调试”。 debug.ui.*”
这是我的实际配置:
<extension point="org.eclipse.ui.activities">
<activity id="rcpcolibri.disablextensions" name="Hidden activities"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.debug.ui.*"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.search.*"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.ui.editors.*"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.ui.externaltools.*"/>
</extension>
我应该禁用哪些扩展?
还有其他方法可以解决这个问题吗?
Eclipse 应该以另一种方式工作:我们应该添加我们需要的东西,而不是让 Eclipse 扔掉所有东西......
I'm using Eclipse HELIOS to code a Rich Client app.
The following entries are added automatically to my APP "PERSPECTIVES MENU":
"Java, Java Browsing, Java Type Hierarchy, Team Synchronizing".
I need to get rid of them.
i'm using the extension point="org.eclipse.ui.activities" to disable unwanted extensions (like the editor and search options that appear on the coolbar)
I managed to get rid of "Debug" by adding "org.eclipse.debug.ui.*"
This is my actual config:
<extension point="org.eclipse.ui.activities">
<activity id="rcpcolibri.disablextensions" name="Hidden activities"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.debug.ui.*"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.search.*"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.ui.editors.*"/>
<activityPatternBinding activityId="rcpcolibri.disablextensions" pattern="org.eclipse.ui.externaltools.*"/>
</extension>
What extensions should I disable?
Is there another way of managing this issue?
Eclipse should work the other way arround: we shoud ADD what we need, and not have everything thrown in by eclipse...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您按照什么模板创建 RCP?
如果您查看 Vogella 的 RCP 教程,您最终会得到一个非常空的 RCP :
也就是说,Vogella 还在他的“Eclipse 活动 – 隐藏/显示某些 UI 元素",您可以在其中看到
activityPatternBinding< 的具体示例/code> 过滤。
他还建议将这些活动与一些命令结合起来。
What template did you follow to create your RCP?
If you look at Vogella's RCP tutorial, you end up with a very empty RCP:
That being said, Vogella also addresses activities in his "Eclipse Activities – Hide / Display certain UI elements", where you can see concrete example of
activityPatternBinding
filtering.He recommends also to combine those activities with some commands.