|How to change icon of menuContribution conditionally? [message #587946]
||Thu, 08 January 2009 20:42
| Girish Chavan
Registered: July 2009
I used to use Actions and recently decided to change over to the |
I have an action that either "Runs" and analysis or "Resumes" an analysis
based on certain runtime conditions. In my Action implementation I call
setImageDescriptor() to change the icon for that action based on the
I want to replicate this functionality using the command-handler paradigm.
The idea I have come up with is to have two handlers ("Run" and "Resume")
for the same command. And activate the proper handler using
However the icon can only be associated with the menuContribution which
remains the same irrespective of which handler is activated. How can I go
about changing the icon based on which handler is active?
Is there any other way I could go about getting the same functionality?
Powered by FUDForum
. Page generated in 0.02308 seconds