Workbench Adapters [message #202439] |
Thu, 26 February 2004 12:27 |
Eclipse User |
|
|
|
Hi,
I'm trying to change the way the ResourceNavigator an XML file with a
certain naming convention in hierarchical fashion (as opposed to being
just a flat file).
After doing quite a bit of research and playing around with the open
source code and the way I have accomplished this atm is by extending the
WorkspaceContentProvider and then overriding the protected getAdapter
method to return a certain type of IWorkbenchAdapter given a certain
naming convention, but I now have a problem in that the new objects which
are the children of this XML document in my model don't have registered
IWorkbenchAdapter objects.
I am not sure if this is the correct way to do it, because there is some
detail in the documentation about registering IAdapterFactory objects for
certain types and then retrieving them. Is there an extension point for
this? How do I go about adding new AdapterFactory objects and then
retrieving them later?
I did look at the documentation in the javadoc of the IAdapterManager
( http://download2.eclipse.org/downloads/documentation/2.0/htm l/plugins/org.eclipse.platform.doc.isv/reference/api/org/ecl ipse/core/runtime/IAdapterManager.html)
class However I can't get this to work, is there any clear documentation
anywhere on how to do this? Unless I am missing the point.
Can someone clarify to me how exactly you go about registering and using
IWorkbenchAdapters for objects in the workbench (either platform objects
or bespoke). Any examples would be appreciated.
Thanks Graeme
|
|
|
Powered by
FUDForum. Page generated in 0.09220 seconds