Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » How to keep track of toggle state of a Command
How to keep track of toggle state of a Command [message #1111801] Wed, 18 September 2013 15:07 Go to next message
Eclipse UserFriend
Hi,

I'm building an Eclipse 4 RCP application, and I'd like to add commands that perform toggle-style operations. I'd like to access those commands with both a toolbar and a menu item.

A tutorial from eclipsesource (for which I can't post the link) explains that the state can be kept in the command via a ToggleState class, but I can't find a way to translate the code to e4.

Is it possible to assign a ToggleState class to a Command in e4?

Thanks,

Romain
Re: How to keep track of toggle state of a Command [message #1112835 is a reply to message #1111801] Fri, 20 September 2013 04:34 Go to previous message
Eclipse UserFriend
Hi,

could you describe what you are trying to do from a requirement point of
view?

Regards

Jonas

Am 18.09.2013 21:53, schrieb Romain Deterre:
> Hi,
>
> I'm building an Eclipse 4 RCP application, and I'd like to add commands
> that perform toggle-style operations. I'd like to access those commands
> with both a toolbar and a menu item.
>
> A tutorial from eclipsesource (for which I can't post the link) explains
> that the state can be kept in the command via a ToggleState class, but I
> can't find a way to translate the code to e4.
>
> Is it possible to assign a ToggleState class to a Command in e4?
>
> Thanks,
>
> Romain
Previous Topic:Loading DS service from XML file
Next Topic:Howto test a service with JUnit
Goto Forum:
  


Current Time: Sun Jul 13 08:56:09 EDT 2025

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

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

Back to the top