Reuse Commands in plugin.xml in form toolbar [message #538732] |
Tue, 08 June 2010 09:54  |
Eclipse User |
|
|
|
Hi,
I have a little problem (I hope) with an eclipse rcp application I am developing right now.
In this application I defined a few command added them to the menubar and assigned different handler for these commands depending on the selection state of the application.
Now I'd like to reuse this commands in a view I have created based on the Eclipse UI Form Toolkit.
The question is, how can I add commands defined in the plugin.xml to the toolbar of an UI Toolkit Form?
Something like:
// ...
ScrolledForm form = managedForm.getForm();
// ...
form.getToolBarManager().add( /* command from plugin.xml */ );
// ...
form.getToolBarManager().update(true);
Thanks in advance
-- Martin
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04519 seconds