public final class ModelResolverRegistry extends Object
Constructor and Description |
---|
ModelResolverRegistry()
Initializes our registry.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears out all registered resolvers from this registry.
|
IModelResolver |
getBestResolverFor(org.eclipse.core.resources.IStorage sourceStorage)
Returns a
IModelResolver that handles the given IStorage. |
List<ModelResolverDescriptor> |
getRegisteredDescriptors()
Returns a view of the descriptors registered in this registry.
|
boolean |
isEnabled()
This can be used to check whether model resolution is currently enabled.
|
public ModelResolverRegistry()
preferenceStore
- Preference store this can query for resolver-related information.public List<ModelResolverDescriptor> getRegisteredDescriptors()
public IModelResolver getBestResolverFor(org.eclipse.core.resources.IStorage sourceStorage)
IModelResolver
that handles the given IStorage.
This will iterate over all the registered resolvers, selecting the highest-ranking resolver that can resolve the target models.
sourceStorage
- Source of the comparisonIModelResolver
that is able to handle the IStorage.public boolean isEnabled()
true
if the model resolution is enabled, false
otherwise.public void clear()
Copyright (c) 2006, 2015 Obeo and others. All rights reserved.