Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Removing Action added by an Action Contributor
Removing Action added by an Action Contributor [message #164421] Mon, 20 March 2006 14:17
Eclipse UserFriend
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?
Previous Topic:runtime classpath question
Next Topic:webdoclet strutsconfigxml.
Goto Forum:
  


Current Time: Thu May 08 17:54:50 EDT 2025

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

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

Back to the top