Eclipse RCP应用程序:如何禁用特定扩展? [英] Eclipse RCP app: How to disable specific extensions?

查看:133
本文介绍了Eclipse RCP应用程序:如何禁用特定扩展?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse HELIOS编写Rich Client应用程序的代码。
以下条目会自动添加到我的APP PERSPECTIVES MENU中:
Java,Java浏览,Java类型层次结构,团队同步。
我需要摆脱它们。



我正在使用extension point = org.eclipse.ui.activities禁用不需要的扩展名(例如



我设法通过添加 org.eclipse.debug.ui。*来摆脱调试 p>

这是我的实际配置:

 < extension point = org .eclipse.ui.activities> 
< activity id = rcpcolibri.disablextensions name =隐藏的活动 />
< 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应该以另一种方式工作:我们应该添加所需的东西,而不要让所有东西都被日食所淹没...

解决方案

您遵循什么模板来创建RCP?

如果您查看 Vogella的RCP教程,您最终得到一个非常空的RCP:



< img src = https://i.stack.imgur.com/Wcb3E.gif alt = alt文字>



话虽如此,Vogella还着眼于活动在他的 Eclipse活动–隐藏/显示某些UI元素,您可以在其中看到 activityPatternBinding 过滤的具体示例。

他建议还将这些活动与一些 comman ds


活动也可以与核心表达式和您自己的define表达式(通过<$ c定义)一起使用$ c> ISourceProvider 。



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

解决方案

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.

Activities can also be used together with core expressions and your own define expressions (which you define via ISourceProvider.

这篇关于Eclipse RCP应用程序:如何禁用特定扩展?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆