How to set the selection provider when I am not using a viewer? [message #90159] |
Mon, 07 July 2003 16:09 |
Eclipse User |
|
|
|
Originally posted by: jane.muse.indus.com
I am using an EditorPart, and filling it with SWT widgets. I am not using
a viewer. I want the properties sheet to display when I click on a widget;
i.e. a text field or a label. Everything I have read says that you are
lucky if you are using a viewer, because it is so easy to set the
selection provider so that PropertySheetPage can know you have selected an
item. The code is:
getSite().setSelectionProvider(getViewer());
Is it possible to get the selection provider when I haven't defined a
viewer in my editor, only widgets? Or, do I need to define a viewer for
PropertySheetPage to be able to listen?
Thanks in advance.
Jane
|
|
|
Powered by
FUDForum. Page generated in 0.01738 seconds