Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Toolbar and commands interaction
Toolbar and commands interaction [message #692308] Mon, 04 July 2011 07:45 Go to next message
FB Mising name is currently offline FB Mising nameFriend
Messages: 8
Registered: October 2010
Junior Member
Hi,

I have an issue giving me headache :

2 button in a toolbar : Play and Stop with each one a commands/handlers attached.
i want to enable the Stop button when i click Play and inversely when i click Stop.
how the Play handler could trigger an event to enable the stop button ?
how do that in a proper way ?
thanks in advance

Francois
Re: Toolbar and commands interaction [message #692317 is a reply to message #692308] Mon, 04 July 2011 08:12 Go to previous message
Adam Lucarz is currently offline Adam LucarzFriend
Messages: 518
Registered: July 2009
Senior Member
Hi,

you can use the expression language in combination with a custom "source" indicating the internal state. See org.eclipse.ui.services -> sourceProvider for further information. So you could save the state (playing/stopped), which you check via expression language to disable/enable the buttons.

Best regards
Adam
Previous Topic:make external jar to plugin into my rcp application
Next Topic:dataBinding and property change notification
Goto Forum:
  


Current Time: Fri Apr 26 05:29:54 GMT 2024

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

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

Back to the top