IPropertySource adapterFactory [message #453675] |
Tue, 08 August 2006 16:04 |
No real name Messages: 38 Registered: July 2009 |
Member |
|
|
I have implemented a simple RCP application that includes a TreeViewer
view as well a IPageLayout.ID_PROP_SHEET property sheet.
The data model is also rather simple -- clients and sessions (1:N
relationship).
When I extend the model objects to implement the IPropertySource and
IWorkbenchAdapter interfaces, I am able to view the model in the tree
view as well as the properties in the property sheet.
However, I'm not keen on extending the data model objects so I created
an adapter factory to handle the UI-related stuff. I was successful in
creating an adapter factory for IWorkbenchAdapter interface.
However, I cannot get any sort of adapter factory to work with the
IPropertySource interface... What I've tried (none work):
1) Extended my IWorkbenchAdapter adapter factory to include the
IPropertySource interface.
2) Programmatic and declarative definition of the adapter factory(s).
3) Completely separate adapter factories (for each interface).
I've also added breadcrumbs to my application to dump the adapter
factories for my base class (extended by the clients n sessions
objects). I dump the results from the
Platform.getAdapterManager().computeAdapterTypes (BaseClass.class) and
it dumps both org.eclipse.ui.model.IWorkbenchAdapter and
org.eclipse.ui.views.properties.IPropertySource.
Help!
|
|
|
Powered by
FUDForum. Page generated in 0.03726 seconds