Context Menus on Dialogs [message #331963] |
Tue, 30 September 2008 16:41  |
Eclipse User |
|
|
|
All,
I have a dialog that contains a JFace TreeViewer, based on selection it is
desired to allow popup context menu on the selected node in the TreeViewer
in the Dialog.
Not surprising, the content of the context menu is dependent on what is
selected. I have various menu contributions and handlers that contribute to
any popup menu and control visiblility, enablement based Selection.
Is it possible
1) Put context popup menus on Trees, Tables, that are parented by Dialog?
2) How do you make the dialog's Tree SelectionProvider participate with the
workbench SelectionService (for menus and handlers controled by expressions)
when the dialog is NOT a ViewPart. It seems that selection mechanism really
wants to work only with WorkbenchParts and when you go outside that box your
out of luck. Or am I missing something?
-Stu
|
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds