|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
This interface is not intended to be implemented by clients.
ModelProvider
Method Summary | |
---|---|
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. |
Method Detail |
public String[] getExtendedModels()
public 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"
.
public String getLabel()
Note that any translation specified in the plug-in manifest file is automatically applied.
public IResource[] getMatchingResources(IResource[] resources) throws CoreException
ModelProvider.getMappings(IResource[], ResourceMappingContext, IProgressMonitor)
resources
- the resources
CoreException
public ResourceTraversal[] getMatchingTraversals(ResourceTraversal[] traversals) throws CoreException
traversals
- the traversals being tested
CoreException
public ModelProvider getModelProvider() throws CoreException
CoreException
- if the model provider could not be instantiated for
some reason
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.