public interface IMetamodelProvider
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.xtext.scoping.IScope |
getAllMetamodelObjects(org.eclipse.xtext.scoping.IScope delegateScope,
org.eclipse.emf.ecore.EObject context)
Returns a set of all available EPackages wrapped into
IEObjectDescription for the use of scoping. |
java.lang.String |
getModelPluginId(org.eclipse.emf.ecore.EPackage ePackage,
org.eclipse.emf.ecore.resource.ResourceSet set)
Returns the identifier of the plugin that contains the generated model code.
|
java.lang.String |
getQualifiedClassName(org.eclipse.emf.ecore.EClassifier classifier,
org.eclipse.emf.ecore.EObject context) |
boolean |
isGeneratedCodeAvailable(org.eclipse.emf.ecore.EPackage ePackage,
org.eclipse.emf.ecore.resource.ResourceSet set)
Returns true if the generated code is available for the given EPackage, the code uses the given resource set
as context.
|
org.eclipse.emf.ecore.EPackage |
loadEPackage(java.lang.String uri,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Loads an EMF package from the nsURI or resource URI of the model, and uses the resource set given as the second
parameter.
|
org.eclipse.xtext.scoping.IScope getAllMetamodelObjects(org.eclipse.xtext.scoping.IScope delegateScope,
org.eclipse.emf.ecore.EObject context)
IEObjectDescription for the use of scoping.
It uses the IEObjectDescriptions from the delegate scope provider too, this way the
EPackages from the XText index will be available too.delegateScope - the delegate scopecontext - the context object for the scopingorg.eclipse.emf.ecore.EPackage loadEPackage(java.lang.String uri,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
uri - resourceSet - boolean isGeneratedCodeAvailable(org.eclipse.emf.ecore.EPackage ePackage,
org.eclipse.emf.ecore.resource.ResourceSet set)
ePackage - for which the availability of generated code is checkedset - used for context in the checkingjava.lang.String getModelPluginId(org.eclipse.emf.ecore.EPackage ePackage,
org.eclipse.emf.ecore.resource.ResourceSet set)
ePackage - for which the model plugin ID is requestedset - used for context in the searchingjava.lang.String getQualifiedClassName(org.eclipse.emf.ecore.EClassifier classifier,
org.eclipse.emf.ecore.EObject context)