Using commands inside a form [message #545002] |
Tue, 06 July 2010 06:32  |
Eclipse User |
|
|
|
Hello,
Can I programmatically place toolbars inside an editor (or view) to which I can contribute commands? (Just like I can register popup menu's for controls by using getSite().registerContextMenu(...)).
I have one form editor with multiple TableViewers that are in Sections. In the top right corner of the section title bar I made new/add buttons (with SWT designer) which should invoke a command when pressed.
I already know I can do this programmatically by adding a selection listener and using the handler service. But this way some functionality is bypassed such as enabled/disabled through activeWhen and other plugins cannot contribute.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05113 seconds