TableViewer contributing to TabbedPropertysheetPage [message #331370] |
Wed, 03 September 2008 17:28 |
Eclipse User |
|
|
|
Originally posted by: andreas-scharf.gmx.de
Hi,
I have some trouble with my TabbedPropertySheetPage. I have a an own
view which contains a TableViewer. My view is asked for an
IPropertySheetPage via getAdapter() and I return such a
PropertySheetPage. But selectionChanged() is never called on the
propertySheetPage which is why I can't see any properties :).
How do I forward the the selectionChanged events from my TableViewer to
my PropertySheetPage?
Cheers,
Andreas
|
|
|
Re: TableViewer contributing to TabbedPropertysheetPage [message #331386 is a reply to message #331370] |
Thu, 04 September 2008 08:49 |
Eclipse User |
|
|
|
Originally posted by: andreas-scharf.gmx.de
Hi,
I sovled the problem myself. For those who are interested: The real
problem is, that a site can only have one SelectionProvider at one time.
So you need a SelectionProviderMediator which acts as an adapter from
multiple views (which are selectionProviders) to one single
SelectionProvider.
see also:
http://www.eclipse.org/articles/Article-WorkbenchSelections/ article.html
Cheers,
Andreas
Andreas Scharf schrieb:
> Hi,
>
> I have some trouble with my TabbedPropertySheetPage. I have a an own
> view which contains a TableViewer. My view is asked for an
> IPropertySheetPage via getAdapter() and I return such a
> PropertySheetPage. But selectionChanged() is never called on the
> propertySheetPage which is why I can't see any properties :).
>
> How do I forward the the selectionChanged events from my TableViewer to
> my PropertySheetPage?
>
> Cheers,
> Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.03142 seconds