Removing Action added by an Action Contributor [message #164421] |
Mon, 20 March 2006 14:17 |
Eclipse User |
|
|
|
I am trying to contribute actions to the workspace based on what
editor is currently open in my MultiPageEditor. I have a text editor
and a design editor. The text editor's action contributor is derived
from TextEditorActionContributor.
What I need to do is remove the actions contributed to the workspace
when I switch from the text editor to the design editor (i.e. print
should be available for text but not for design). I am currently doing
this by storing a copy of the ACTIONS array of
ITextEditorActionConstants that the BasicTextEditorActionContributor
adds and systematically disabling each of those actions via a function
call available through my subclass.
Is there a better way to do this so I don't have to derive my own
class and copy data?
|
|
|
Powered by
FUDForum. Page generated in 0.05923 seconds