[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: [Team] API to determine resources under scm control?

Sri,

There is no Team API to determine if a particular resources is under version control. The best you can do is determine if the project is associated with a repository (which is what the code you provided does).

Michael

Sri Gunturi wrote:

Having gone through the newsgroups and some code, it looks like one cannot determine if a particular resource is under SCM control using Team API.


Rather, one has to determine the specific RepositoryProvider for the project, and ask that repository provider for resource specific questions like - is this resource in cvs? etc.

if(RepositoryProvider.isShared(project)){
RepositoryProvider scmProvider = RepositoryProvider.getProvider(project);
}

Is this the correct way to determine if resources are in SCM control, or is there better Team API for achieving this?

Thanks.