Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Workbench Adapters
Workbench Adapters [message #202439] Thu, 26 February 2004 17:27
Graeme Rocher is currently offline Graeme RocherFriend
Messages: 5
Registered: July 2009
Junior Member
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
Previous Topic:Anybody knows about eclipse and JDK 1.5?
Next Topic:installing eclipse
Goto Forum:
  


Current Time: Sun Sep 15 09:51:38 GMT 2024

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

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

Back to the top