Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » View Toolbar: How to set an action as "toggle Button"
View Toolbar: How to set an action as "toggle Button" [message #293545] Wed, 26 October 2005 05:58 Go to next message
Eclipse UserFriend
Originally posted by: bobruney.gmx.net

Hi everybody,

i want to make an Action as "Toggle Button" within my view Toolbar (in the
same way as in the Eclipse Outline view for the Java IDE, where one can
toggle that fields are hided).

IŽve had a look at the API for Action, but havenŽt found anything.

Could anybody point me towards how to set this behaviour?
At the moment i have a simple "click" Action....

Thanks in advance
Andreas
Re: View Toolbar: How to set an action as "toggle Button" [message #293564 is a reply to message #293545] Wed, 26 October 2005 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Check out the action "state" attribute ... in the extension editor.

Later,
PW
Re: View Toolbar: How to set an action as "toggle Button" [message #293573 is a reply to message #293564] Wed, 26 October 2005 10:48 Go to previous message
Eclipse UserFriend
Originally posted by: bobruney.gmx.net

Hi Paul,

thanks a lot for your answer.

I found out that with

...
myAction.setChecked(false);
...

You set a checkbox behavour towards the action, as i only have one Button
this is either "pushed" or "not pushed".

One can check the "mode" the button is currently in through

...
myAction.isChecked();
...

and then respond accordingly.

Thanks for your answer.

Greetings
Andreas
Previous Topic:How to add/bind standard menus in an Application?
Next Topic:Oldest JDK to build Eclipse?
Goto Forum:
  


Current Time: Tue Jul 22 13:48:12 EDT 2025

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

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

Back to the top