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 11:19 Go to next message
Jean-Marie Damas is currently offline Jean-Marie Damas
Messages: 29
Registered: July 2009
Junior Member
Hello.

I build an RCP application above Eclipse Platform 3.4.2.
This feature comes with some plugins defining action sets
("org.eclipse.ui.cheatsheets.actionSet",
"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.
JM.D
Re: How to disable ActionSets contributed by other plugins ? [message #487047 is a reply to message #486428] Mon, 21 September 2009 12:20 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6850
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 plugin.id/action.set.id

PW


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


Current Time: Sat Apr 19 03:01:03 EDT 2014

Powered by FUDForum. Page generated in 0.09679 seconds