Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » ToggleState default value
ToggleState default value [message #603378] Wed, 18 November 2009 18:52
Joel is currently offline JoelFriend
Messages: 16
Registered: October 2009
Junior Member
My command has a default value, but it seems to be ignored whether true or false. Specifically, in the handler's execute(), event.getCommand().getState(ID).getValue() always returns false the first time (before I toggle its state).

I'm using Eclipse 3.4. Here is my command extension:
> <extension
> point="org.eclipse.ui.commands">
> <command
> defaultHandler="mystuff.command.DisplayZonesHandler"
> description="Toggles the displaying of the video zones"
> id="mystuff.command.displayzones"
> name="Display Zones">
> <state
> id="mystuff.command.displayzones.state">
> <class class="org.eclipse.jface.commands.ToggleState">
> <parameter name="default" value="false">
> </parameter>
> </class>
> </state>
> </command>

Thanks in advance.
Previous Topic:ToggleState default value
Next Topic:Eclipse plug-in support for GB18030 strings (4 byte characters) in chinese locale on windows
Goto Forum:

Current Time: Sat Aug 08 15:29:15 GMT 2020

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

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

Back to the top