Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse RCP app: How to disable specific extensions?

Tags:

eclipse

rcp

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

like image 423
marcolopes Avatar asked Nov 05 '22 07:11

marcolopes


1 Answers

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:

alt text

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.

like image 142
VonC Avatar answered Nov 09 '22 06:11

VonC