Community
Participate
Working Groups
Add public void setMode(int mode) method to the CommandContributionItem API to allow dynamic setting of the display mode - icon or icon and text. We have a toggle toolbar text feature in our application and the lack of this functionality for commands is preventing us from migrating our existing actions to commands. Is it possible this enhancement to be included in future 3.4.x build?
I'm not keen on this, as the client code can't find most CommandContributionItems in the first place (except for ones they instantiate, maybe). But maybe it wouldn't really hurt anything either, keeping in mind that setMode(*) would not refresh anything, that would be the client code job. That being said, no new API is allowed in 3.4.x, it would have to be in 3.5 PW
Not in in 3.5 as well? I'd be happy to have this - at the moment I have to set the mode by reflection which is slightly a pain. Kindly let know when this will go into the API. Thanks,
No one is looking at this at the moment, but patches are welcome. http://wiki.eclipse.org/Platform_UI/How_to_Contribute PW