Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Change actionSet button state programatically
Change actionSet button state programatically [message #95798] Wed, 02 July 2008 09:36 Go to next message
Eclipse UserFriend
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 10: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: Mon Jul 14 12:09:16 EDT 2025

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

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

Back to the top