[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [platform-vcm-dev] Using ICVSRemoteFile from custom plugin
|
Hi Nils,
Originally we had hoped these classes would be API, but we haven't done the
due-diligence. Although the packages are not marked internal they were
supposed to be, and we have a bug report open on this.
From your post and bug report, I gather you are writing some kind of tool
for displaying the CVS tree. Would you be interested in contributing that
to eclipse.org as part of the CVS UI support?
Kevin
Nils Meier
<nilsca@xxxxxxxxx> To: platform-vcm-dev@xxxxxxxxxxx
Sent by: cc:
platform-vcm-dev-admin@ Subject: [platform-vcm-dev] Using ICVSRemoteFile from custom
eclipse.org plugin
04/10/2002 12:11 PM
Please respond to
platform-vcm-dev
Hi
I'm trying to do
IResource resource = (IResource)selection.getFirstElement();
((IAdaptable)resource).getAdapter(ICVSRemoteFile.class)
in my own plugin to get to a ICVSRemoteFile for a local
resource.
But that doesn't work :( I've traced it down to the
fact that CVSAdapterFactory isn't registered as a
IAdapterFactory when my plugin runs even though the
plugin org.eclipse.team.cvs.ui is up and running.
(getAdapter() returns null above)
I guess that has something to do with the way Eclipse
uses its own classloader for every plugin. It's
probably not o.k. to do the following myself:
CVSAdapterFactory factory = new CVSAdapterFactory();
Platform.getAdapterManager().registerAdapters(factory,
ICVSRemoteFile.class);
Platform.getAdapterManager().registerAdapters(factory,
ICVSRemoteFolder.class);
Platform.getAdapterManager().registerAdapters(factory,
ICVSRepositoryLocation.class);
So is this an oversight or did I miss something? I think
it makes sense to try to use this plugin's features
from another plugin (no?)
Thanks for pointers here
Nils
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
_______________________________________________
platform-vcm-dev mailing list
platform-vcm-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-vcm-dev