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


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.