Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to change icon of menuContribution conditionally?
How to change icon of menuContribution conditionally? [message #39561] Thu, 08 January 2009 20:42
Girish Chavan is currently offline Girish ChavanFriend
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?
Previous Topic:Dependency on JUnit bundle can not be satisfied in manifest
Next Topic:How to change icon of menuContribution conditionally?
Goto Forum:
  


Current Time: Thu Dec 26 11:58:08 GMT 2024

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

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

Back to the top