Class ModelDependencyProviderRegistry
java.lang.Object
org.eclipse.emf.compare.ide.ui.dependency.ModelDependencyProviderRegistry
The registry managing the registered dependency extension point information.
- Since:
- 4.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProvider(String className, DependencyProviderDescriptor descriptor) Adds the givenDependencyProviderDescriptorto this registry, using the givenclassNameas the identifier.voidclear()Clears out all registered providers from this registry.getDependencies(URI uri, URIConverter uriConverter) Returns the set of allURIsthat are determined as a dependency by the registered dependency providers.removeProvider(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.
-