[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Linking TreeViewer etc. to the PropertiesView

Correct. This effectively publishes your view's viewer to the workbench page's selection service, which the Properties view tracks.
Viewer implements ISelectionProvider. IWorkbenchPage extends ISelectionService. See the Javadoc for these interfaces.


Nick

Steve Blass wrote:
Rob Bercik wrote:

Hi,

   I am trying to display properties in the properties view in an RCP
application. I would assume that you need to set the properties view as a
listener to selection changes, but the PropertyBook view implements the
ISelectionListener interface and the Viewer classes only have an
addSelectionChangedListener. What am I missing?

Thanks,
Rob




I think you want your viewer to be an ISelectionProvider so the properties view can pick up the viewer selection.

getSite().setSelectionProvider(viewer);

-
Steve