Commands and Toolbar and Toggle style buttons? [message #336423] |
Wed, 10 June 2009 16:37  |
Eclipse User |
|
|
|
Originally posted by: eclipse-newsgroups.scharf.gr
Hi,
I am trying to do a very simple thing: I want to add
a simple button to the windows menu and the tool bar
and it should be a toggle button. I used the "Hello world
Command" template.
I have the following problems:
1. if I add it to the toolbar as in the with
locationURI as:
toolbar:org.eclipse.ui.main.toolbar?after=additions
the button appears but in the "Customize perspective"
the tool bar has no group and I am too stupid to figure
out how to create a group :-(
2. How do I update the toggle state of the tool bar command
and the menu command? (they should somehow listen to the
state of my Handler). I am sure there is somewhere some
magic, but I was unable to figure it out...
So, I thought I'd better ask the experts:
http://michaelscharf.blogspot.com/2009/05/why-is-rcp-emf-p2- databinding-so-hard.html
Michael
--
Michael Scharf
Wind River Systems GmbH
http://www.WindRiver.com
http://MichaelScharf.blogspot.com/
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03124 seconds