Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Toggle state
Toggle state [message #549484] Mon, 26 July 2010 19:24
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 100
Registered: March 2010
Senior Member
Hello


I have a command (style toggle) and I need know his state and change its.

can I add state whit plugin editor? or I must write in the plugin.xml

<state 
         class = "org.eclipse.ui.handlers.RegistryToggleState: true" 
         id = "org.eclipse.ui.commands.toggleState"> 
   </state> 


How can I change the state of command?

Thanks a lot
Jose


Edit--------------------------------

I reply me

In the handler

Command command = event.getCommand();
/*This change the status of button of command*/
boolean oldValue = HandlerUtil.toggleCommandState(command);



[Updated on: Mon, 26 July 2010 22:10]

Report message to a moderator

Previous Topic:individual start level with feature based launch?
Next Topic:Toggle state
Goto Forum:
  


Current Time: Sat May 11 22:58:35 GMT 2024

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

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

Back to the top