Class ModelDependencyProviderRegistry
- java.lang.Object
-
- org.eclipse.emf.compare.ide.ui.dependency.ModelDependencyProviderRegistry
-
public class ModelDependencyProviderRegistry extends Object
The registry managing the registered dependency extension point information.- Since:
- 4.1
-
-
Constructor Summary
Constructors Constructor Description ModelDependencyProviderRegistry()Constructs and initialized this registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProvider(String className, DependencyProviderDescriptor descriptor)Adds the givenDependencyProviderDescriptorto this registry, using the givenclassNameas the identifier.voidclear()Clears out all registered providers from this registry.Set<URI>getDependencies(URI uri, URIConverter uriConverter)Returns the set of allURIsthat are determined as a dependency by the registered dependency providers.DependencyProviderDescriptorremoveProvider(String className)Removes theDependencyProviderDescriptorand its managedIDependencyProvideridentified by the givenclassNamefrom this registry.
-
-
-
Method Detail
-
getDependencies
public Set<URI> getDependencies(URI uri, URIConverter uriConverter)
Returns the set of allURIsthat are determined as a dependency by the registered dependency providers. If multiple providers declare dependencies the results are combined.- Parameters:
uri- TheURIfor which the dependencies are to be determined.uriConverter- TheURIConverterto be used.- Returns:
- The set of dependencies of
uri. Ifurihas no dependency, the returned set is empty.
-
addProvider
public void addProvider(String className, DependencyProviderDescriptor descriptor)
Adds the givenDependencyProviderDescriptorto this registry, using the givenclassNameas the identifier.- Parameters:
className- The identifier for the givenDependencyProviderDescriptor.descriptor- TheDependencyProviderDescriptorwhich is to be added to this registry.
-
removeProvider
public DependencyProviderDescriptor removeProvider(String className)
Removes theDependencyProviderDescriptorand its managedIDependencyProvideridentified by the givenclassNamefrom this registry.- Parameters:
className- Identifier of the provider we are to remove from this registry.- Returns:
- The removed
DependencyProviderDescriptor, if any.
-
clear
public void clear()
Clears out all registered providers from this registry.
-
-