Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » IPropertySource adapterFactory
IPropertySource adapterFactory [message #453675] Tue, 08 August 2006 16:04
No real name is currently offline No real nameFriend
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!
Previous Topic:PropertySheetPage context menu
Next Topic:How to control the order of declared menues from several plugins?
Goto Forum:
  


Current Time: Wed Oct 09 01:02:04 GMT 2024

Powered by FUDForum. Page generated in 0.03726 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top