Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » En-/disabling action based on active editor
En-/disabling action based on active editor [message #448269] Thu, 20 April 2006 01:23
Eclipse UserFriend
Originally posted by: Alexander.Kriegisch.web.de

I want an action to be enabled when the current editor's widget is a
StyledText (e.g. Java source code editor). Thus, neither 'selection' nor
'enablement' are appropriate points in plugin.xml to achieve that
behaviour. I found some code on the web which registers an
IPropertyChangeListener implementation to the item on which the enablement
depends. As I don't know a certain item which I could watch (open editors
change all the time) and which is also compatible with
IPropertyChangeListener, I am a bit clueless at the moment and would
appreciate ideas of more experienced Eclipse adepts. I don't know the
component model of the Eclipse platform very well, I am afraid.
Previous Topic:Actions added, but they are disabled
Next Topic:Itro in eclipse 3.2 rc1
Goto Forum:
  


Current Time: Mon Jul 07 11:35:35 EDT 2025

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

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

Back to the top