Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:07 Go to next message
Romain Deterre is currently offline Romain Deterre
Messages: 1
Registered: September 2013
Junior Member
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 08:34 Go to previous message
Jonas Helming is currently offline Jonas Helming
Messages: 454
Registered: July 2009
Senior Member
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: Thu Oct 23 02:27:21 GMT 2014

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

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