|How to disable ActionSets contributed by other plugins ? [message #486428]
||Thu, 17 September 2009 15:19
| Jean-Marie Damas
Registered: July 2009
I build an RCP application above Eclipse Platform 3.4.2.
This feature comes with some plugins defining action sets
"org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo", and so on)
which are active by default when I run my app.
Is there a way of disabling them either by :
- using a "plugin_customization.ini" parameter to list the default wanted
active ActionSets at startup ?
- defining my proper perspective and calling some API in the
createInitialLayout() method ?
- using the ActionSetRegistry in a plugin earlyStartup() ?
I succeeded in *removing* them, using ActionSetRegistry in my plugin
earlyStartup() but that *didn't disable* them !! They disappeared from the
[Window|Customize Perspective...|Commands] list but their GUI
contributions were still there. Even a call to
IActionSetDescriptor.setInitiallyVisible(false) didn't disable them ...
I guess that the removeExtension() and setInitiallyVisible() calls came
too late in the workbench lifecycle.
So, what are the right footstrap and method ?
Thank you for your help.
Powered by FUDForum
. Page generated in 0.02016 seconds