Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Initialize toggle to true
Initialize toggle to true [message #588348] Sat, 17 January 2009 23:30
Craig Foote is currently offline Craig FooteFriend
Messages: 211
Registered: July 2009
Senior Member
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"?

Previous Topic:Why there is no entry in Navigator View
Next Topic:Context help in a wizard
Goto Forum:

Current Time: Wed Jun 23 17:22:42 GMT 2021

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

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

Back to the top