Finding a provider
Static methods in RepositoryProvider
make it easy for clients to map projects to providers and to find the providers associated with a given project.
- map(IProject, String) - instantiates a provider of the specified
provider id and maps the specified project to it. This call sets the
proper project persistent property on the project.
- unmap(IProject, String) - removes the association of the specified
provider id from the specified project. Leaves the project
unassociated with any team provider.
- getProvider(IProject) - answers the provider for a given
project. Can be used to find any team provider for a project.
- getProvider(IProject, String) - answers the provider for a given
project with the specified provider id. Can be used to check whether a
particular team provider type is associated with a given project. It
is commonly used by providers to quickly check whether a given project is
under their care. This call is safer for clients since it does not
return a provider that does not match the client's id.
