Properties View not showing my IPropertySource [message #452623] |
Mon, 10 July 2006 17:36 |
Eclipse User |
|
|
|
Originally posted by: denys_seguret.yahoo.fr
Hello,
I've made a simple RCP application with two views : one contains a simple TreeViewer and the other is the standard PropertiesView.
The objets provided to the treeViewer all implement the IPropertySource interface.
I have registred my treeviewer as a selectionProvider and I verified (with a specific SelectionListener) that the selection event is well fired.
My problem is that the propertiesViewer doesn't show my properties. In fact the methods of my objects corresponding to the implementation of IPropertySource aren't event called.
Any idea ?
Thanks a lot.
|
|
|
|
|
Re: Properties View not showing my IPropertySource [message #452762 is a reply to message #452670] |
Fri, 14 July 2006 00:31 |
Eclipse User |
|
|
|
Originally posted by: dkodeboy.mcs.anl.gov
Seguret wrote:
> Thanks !
>
> The missing dependency in the plugin was the problem.
>
> Thanks again :)
> Denys
Hi
I seem to have the above mentioned problem but I have already added
the dependency in my plugin.xml. Below is an outline of what I have
currently:
1. A treeviewer that is set to be a selection provider.
2. A treeObject(the selection) that implements IAdaptable and returns an
IPropertySource to the calling class.
3. A properties view that is included in the perspective class as a
separate folder using
IFolderLayout folder1 = layout.createFolder("folder1", (int)
IPageLayout.RATIO_MIN, 0.10f, editorArea);
folder1.addView("org.eclipse.ui.views.PropertySheet");
this view(oro.eclipse.ui.views) has also been included on the dependency
list for this plugin.
What I can see now :
1. All the views are displayed - the tree viewer as well as the property
sheet.
2. The property sheet seems to partially respond to the selection events
and by that I mean on a selection it getsPropertyDescriptors from the
IPropertySource implementation and also calls getPropertyValue() on each
of the descriptors(which in this case are Text descriptors).
My problem is that although they seem to return from this I still cannot
see the information on the Properties View.
The system seems to throw some error though and points to the error log
which doesnt contain any relevant errors. Any help on this will be much
appreciated ...
Thanks,
dkodeboy
|
|
|
Powered by
FUDForum. Page generated in 0.05472 seconds