Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Representing toggle state in action bar
Representing toggle state in action bar [message #483804] Thu, 03 September 2009 06:16 Go to next message
Paul Glezen is currently offline Paul GlezenFriend
Messages: 60
Registered: July 2009
Member
I added some actions to an outline view for toggling on/off certain view
filters. I chose "toggle" as the action style. Clicking the button
does indeed turn the action on/off. But I'd like the icon to somehow
change to indicate the toggle state. Is there some way I can specify
this declaritively in the plugin.xml?

- Paul
Re: Representing toggle state in action bar [message #483813 is a reply to message #483804] Thu, 03 September 2009 07:35 Go to previous messageGo to next message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi,

If you would be looking for commands you could check:

http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle- radio-menu.html

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Paul Glezen wrote:
> I added some actions to an outline view for toggling on/off certain view
> filters. I chose "toggle" as the action style. Clicking the button
> does indeed turn the action on/off. But I'd like the icon to somehow
> change to indicate the toggle state. Is there some way I can specify
> this declaritively in the plugin.xml?
>
> - Paul
Re: Representing toggle state in action bar [message #484520 is a reply to message #483813] Tue, 08 September 2009 04:09 Go to previous messageGo to next message
Paul Glezen is currently offline Paul GlezenFriend
Messages: 60
Registered: July 2009
Member
This helped me. Thanks for the link. I was surprised how hard this was
to figure out. In addition to the Eclipse API docs, I needed

* the link below
* samples from Eclipse Plug-ins book (3rd ed)
* the debugger to inspect the contents of the ExecutionEvent

to determine how to glean the info I needed. It seems that every time I
write a handler for a different type of menu/toolbar; I need the
debugger to help me figure how to dig the required info out of
ExecutionEvent.

Thanks again for the link.

Lars Vogel wrote:
> Hi,
>
> If you would be looking for commands you could check:
>
> http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle- radio-menu.html
>
> Best regards, Lars
>
Re: Representing toggle state in action bar [message #486050 is a reply to message #484520] Wed, 16 September 2009 05:30 Go to previous message
Lars Vogel is currently offline Lars VogelFriend
Messages: 1098
Registered: July 2009
Senior Member

Hi Paul,

a set of use cases for commands is described here:
http://www.vogella.de/articles/EclipseCommands/article.html

Best regards, Lars

--
http://www.vogella.de/ - Eclipse plugin and Eclipse RCP Tutorials
http://www.twitter.com/vogella - vogella on Twitter


Paul Glezen wrote:
> This helped me. Thanks for the link. I was surprised how hard this was
> to figure out. In addition to the Eclipse API docs, I needed
>
> * the link below
> * samples from Eclipse Plug-ins book (3rd ed)
> * the debugger to inspect the contents of the ExecutionEvent
>
> to determine how to glean the info I needed. It seems that every time I
> write a handler for a different type of menu/toolbar; I need the
> debugger to help me figure how to dig the required info out of
> ExecutionEvent.
>
> Thanks again for the link.
>
> Lars Vogel wrote:
>> Hi,
>>
>> If you would be looking for commands you could check:
>>
>> http://blog.eclipse-tips.com/2009/03/commands-part-6-toggle- radio-menu.html
>>
>>
>> Best regards, Lars
>>
Previous Topic:no option to profile as Java Application
Next Topic:ctrl-1 doesn't work
Goto Forum:
  


Current Time: Thu Apr 25 09:06:51 GMT 2024

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

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

Back to the top