Initialize toggle to true [message #40739] |
Sat, 17 January 2009 23:30 |
|
I have a couple MenuContributions for a command whose handler implements
IElementUpdater to synchronize their isChecked state. I'm using the state
attribute of the command, specifying:
<state id="STYLE" class="org.eclipse.jface.commands.ToggleState" />
I understand ToggleSate is initialized to "false" but I need it
initialized to 'true', i.e. menu checked and button depressed. I found
the following indicating ":true" can be appended to the class name but it
doesn't work for me:
<state id="STYLE" class="org.eclipse.jface.commands.ToggleState:true" />
I'm using Eclipse3.4 fully updated. Can anyone shed some light on this
for me please?
Can a declared command of style "toggle" be declared "true"?
Craig
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03281 seconds