Properties View for elements in JFace Viewer [message #663655] |
Wed, 06 April 2011 05:29 |
manasa Messages: 32 Registered: October 2010 |
Member |
|
|
Hi,
I am trying to create a view of mine, which has a jface treeviewer, and a section in the view, where i want to show the properties of the selected element.
I am re-using the property sheet view by creating an instance of the eclipse propertysheetpage.
I can see the properties of the selected element in my view's section, but only when the original properties view is opened.
Until the eclipse Properties View is not opened, I dont see the properties of the selected element.
I get the adapter as IPropertySheetPage.class, in my getAdapter() method, only when the Properties View is opened.
public Object getAdapter(Class adapter) {
if (adapter == IPropertySheetPage.class)
return propertiesPage;
return super.getAdapter(adapter);
}
Am I missing something, when I am creating the instance of PropertySheetPage?Coud anyone comment on this.
Thanks in advance,
Regards,
Mansa
|
|
|
Powered by
FUDForum. Page generated in 0.03152 seconds