Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-vcm-dev] Using ICVSRemoteFile from custom plugin

Kevin,

O.K. I was fearing that these interfaces wouldn't make
it to be public 'completely'. Yes, I've looked into a
CVSGraphView and surly would contribute it if done.

Cheers
Nils

--- Kevin_McGuire@xxxxxxx wrote:
> 
> 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
> 
> 
> 
> 
> _______________________________________________
> platform-vcm-dev mailing list
> platform-vcm-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-vcm-dev


__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/


Back to the top