How to change icon of menuContribution conditionally? [message #39561] |
Thu, 08 January 2009 20:42 |
Girish Chavan Messages: 2 Registered: July 2009 |
Junior Member |
|
|
I used to use Actions and recently decided to change over to the
command-handler paradigm.
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
runtime condition.
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
PropertyTesters.
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.02491 seconds