Show a subset of preference pages and options in RCP App [message #515167] |
Wed, 17 February 2010 23:50 |
Jennifer Messages: 9 Registered: February 2010 |
Junior Member |
|
|
Hi,
I'm trying to create a dumbed down interface to only show the UI elements I want the users to see.
I have two preference pages I would like to show. For some reason I have the Java/Debug/Team pages. I guess because they were required plugins in the Eclipse product.
I tried creating an array of IDs when opening the preference page, but it only does a search and then you can't even see the other page I want to show.
So in the ActionBarAdvisor, I now have
editMenu.add(new OpenPreferencesAction(getActionBarConfigurer().getWindowConf igurer().getWindow()));
However I did create my own PreferencesAction and modified
String[] ids = {"Assembly", "Visualiser"};
PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(null, "Assembly", ids, null);
but that just opens the ugly search screen.
Any way I can customize this? I would remove java plugins since I don't need them in my opinion, but if I remove them from the product dependencies, I get the good old
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.preferences; bundle-version="[3.2.0,4.0.0)"
So... any ideas?
I should also add that I'd love to remove references to anything Java or Team in the right click options as well.
I'm hoping there's a plugin development option I've missed to run with the bare minimum, and then clicking "add required plugins" won't add everything and won't cause an error.
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04454 seconds