Change actionSet button state programatically [message #95798] |
Wed, 02 July 2008 09:36  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.08085 seconds