Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to disable ActionSets contributed by other plugins ?
How to disable ActionSets contributed by other plugins ? [message #486428] Thu, 17 September 2009 15:19 Go to next message
Jean-Marie Damas is currently offline Jean-Marie DamasFriend
Messages: 29
Registered: July 2009
Junior Member

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.
Re: How to disable ActionSets contributed by other plugins ? [message #487047 is a reply to message #486428] Mon, 21 September 2009 16:20 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

To make actionSets disappear, use org.eclipse.ui.activities. Create an activity with default enablement false, and bind it to a pattern that will match the actionSets in question. The pattern is always


Previous Topic:Missing "Other projects" working set when in "Java EE" perspective
Next Topic:Filter commands by parameter
Goto Forum:

Current Time: Sun Nov 18 17:00:05 GMT 2018

Powered by FUDForum. Page generated in 0.01617 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top