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 #587946] 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

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:How to change icon of menuContribution conditionally?
Next Topic:PDE Build (Ant) Mucking With Bundle MANIFEST.MF
Goto Forum:

Current Time: Sat Jul 31 04:12:42 GMT 2021

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

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

Back to the top