Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » ToggleState default value
ToggleState default value [message #603378] Wed, 18 November 2009 13:52
Eclipse UserFriend
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:
Quote:
> <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: Mon Jul 07 12:44:10 EDT 2025

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

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

Back to the top