|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModelProviderDescriptor
A model provider descriptor contains information about a model provider
obtained from the plug-in manifest (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| Method Summary | |
|---|---|
java.lang.String[] |
getExtendedModels()
Return the ids of model providers that this model provider extends. |
java.lang.String |
getId()
Returns the unique identifier of this model provider. |
java.lang.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. |
| Method Detail |
|---|
java.lang.String[] getExtendedModels()
java.lang.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".
java.lang.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 resources
CoreException
ResourceTraversal[] getMatchingTraversals(ResourceTraversal[] traversals)
throws CoreException
traversals - the traversals being tested
CoreException
ModelProvider getModelProvider()
throws CoreException
CoreException - if the model provider could not be instantiated for
some reason
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.