Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to set the selection provider when I am not using a viewer?
How to set the selection provider when I am not using a viewer? [message #90159] Mon, 07 July 2003 20:09
Eclipse UserFriend
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
Previous Topic:customize Perspective
Next Topic:puzzled by Local History....
Goto Forum:
  


Current Time: Sun Oct 06 13:12:41 GMT 2024

Powered by FUDForum. Page generated in 0.03487 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top