public interface IModelProviderDescriptor
plugin.xml
) file.
Model provider descriptors are platform-defined objects that exist
independent of whether that model provider's plug-in has been started.
In contrast, a model provider's runtime object (ModelProvider
)
generally runs plug-in-defined code.
ModelProvider
Modifier and Type | Method and Description |
---|---|
String[] |
getExtendedModels()
Return the ids of model providers that this model provider extends.
|
String |
getId()
Returns the unique identifier of this model provider.
|
String |
getLabel()
Returns a displayable label for this model provider.
|
IResource[] |
getMatchingResources(IResource[] resources)
From the provides set of resources, return those that match the enablement
rule specified for the model provider descriptor.
|
ResourceTraversal[] |
getMatchingTraversals(ResourceTraversal[] traversals)
Return the set of traversals that overlap with the resources that
this descriptor matches.
|
ModelProvider |
getModelProvider()
Return the model provider for this descriptor, instantiating it if it is
the first time the method is called.
|
String[] getExtendedModels()
String getId()
The model provider identifier is composed of the model provider's
plug-in id and the simple id of the provider extension. For example, if
plug-in "com.xyz"
defines a provider extension with id
"myModelProvider"
, the unique model provider identifier will be
"com.xyz.myModelProvider"
.
String getLabel()
Note that any translation specified in the plug-in manifest file is automatically applied.
IResource[] getMatchingResources(IResource[] resources) throws CoreException
ModelProvider.getMappings(IResource[], ResourceMappingContext, IProgressMonitor)
resources
- the resourcesCoreException
ResourceTraversal[] getMatchingTraversals(ResourceTraversal[] traversals) throws CoreException
traversals
- the traversals being testedCoreException
ModelProvider getModelProvider() throws CoreException
CoreException
- if the model provider could not be instantiated for
some reason
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.