Class ModelDependencyProviderRegistry
java.lang.Object
org.eclipse.emf.compare.ide.ui.dependency.ModelDependencyProviderRegistry
public class ModelDependencyProviderRegistry
extends java.lang.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
Modifier and Type Method Description voidaddProvider(java.lang.String className, DependencyProviderDescriptor descriptor)Adds the givenDependencyProviderDescriptorto this registry, using the givenclassNameas the identifier.voidclear()Clears out all registered providers from this registry.java.util.Set<URI>getDependencies(URI uri, URIConverter uriConverter)Returns the set of allURIsthat are determined as a dependency by the registered dependency providers.DependencyProviderDescriptorremoveProvider(java.lang.String className)Removes theDependencyProviderDescriptorand its managedIDependencyProvideridentified by the givenclassNamefrom this registry.
-
Constructor Details
-
ModelDependencyProviderRegistry
public ModelDependencyProviderRegistry()Constructs and initialized this registry.
-
-
Method Details
-
getDependencies
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
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
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.
-