|Re: Initialize toggle to true [message #588379 is a reply to message #40739]
||Mon, 19 January 2009 06:58
| Prakash G.R.
Registered: July 2009
FYI : https://bugs.eclipse.org/bugs/show_bug.cgi?id=221980|
"Craig Foote" <CraigFoote@gmail.com> wrote in message
>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"?
Powered by FUDForum
. Page generated in 0.02104 seconds