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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProvider
(String className, DependencyProviderDescriptor descriptor) Adds the givenDependencyProviderDescriptor
to this registry, using the givenclassName
as the identifier.void
clear()
Clears out all registered providers from this registry.getDependencies
(URI uri, URIConverter uriConverter) Returns the set of allURIs
that are determined as a dependency by the registered dependency providers.removeProvider
(String className) Removes theDependencyProviderDescriptor
and its managedIDependencyProvider
identified by the givenclassName
from this registry.
-
Constructor Details
-
ModelDependencyProviderRegistry
public ModelDependencyProviderRegistry()Constructs and initialized this registry.
-
-
Method Details
-
getDependencies
Returns the set of allURIs
that are determined as a dependency by the registered dependency providers. If multiple providers declare dependencies the results are combined.- Parameters:
uri
- TheURI
for which the dependencies are to be determined.uriConverter
- TheURIConverter
to be used.- Returns:
- The set of dependencies of
uri
. Ifuri
has no dependency, the returned set is empty.
-
addProvider
Adds the givenDependencyProviderDescriptor
to this registry, using the givenclassName
as the identifier.- Parameters:
className
- The identifier for the givenDependencyProviderDescriptor
.descriptor
- TheDependencyProviderDescriptor
which is to be added to this registry.
-
removeProvider
Removes theDependencyProviderDescriptor
and its managedIDependencyProvider
identified by the givenclassName
from 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.
-