Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Change actionSet button state programatically
Change actionSet button state programatically [message #95798] Wed, 02 July 2008 13:36 Go to next message
Patrick Turcotte is currently offline Patrick TurcotteFriend
Messages: 23
Registered: July 2009
Junior Member
Hi,

First, congratulations for the release of 1.1!

We create toolbar 3 radio-type buttons (of type IWorkbenchWindowActionDelegate) in an actionSet in our plugin.xml file.
And they are working as expected.

Is it possible to change the state (and display) of those button programmatically (as if the user had pressed one of them)?

We tried
IActionBars actionBars = ((PartSite) getSite()).getActionBars();
IToolBarManager toolBarManager = actionBars.getToolBarManager();
but it doesn't work.

Thanks.

Patrick
--
If you are not living on the edge, you are taking too much space!
Re: Change actionSet button state programatically [message #95891 is a reply to message #95798] Wed, 02 July 2008 14:42 Go to previous message
Eclipse UserFriend
Originally posted by: rherrmann.innoopract.com

Patrick,

if implementing selectionChanged() doesn't help, then I don't know.
Though, you could ask on the RCP newsgroup if there is a solution to
this.

Cheers,
Rüdiger


Patrick Turcotte wrote:
> Hi,
>
> First, congratulations for the release of 1.1!
>
> We create toolbar 3 radio-type buttons (of type
> IWorkbenchWindowActionDelegate) in an actionSet in our plugin.xml file.
> And they are working as expected.
>
> Is it possible to change the state (and display) of those button
> programmatically (as if the user had pressed one of them)?
>
> We tried
> IActionBars actionBars = ((PartSite) getSite()).getActionBars();
> IToolBarManager toolBarManager = actionBars.getToolBarManager();
> but it doesn't work.
>
> Thanks.
>
> Patrick
> --
> If you are not living on the edge, you are taking too much space!
Previous Topic:Strange back-button behaviour
Next Topic:preWindowShellClose is not called
Goto Forum:
  


Current Time: Thu Apr 25 18:00:44 GMT 2024

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

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

Back to the top