How to keep track of toggle state of a Command [message #1111801] |
Wed, 18 September 2013 15:07  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.08833 seconds