public interface ITargetMetaModelDescriptorProvider
target meta model
descriptor
. To contribute a TargetMetaModelDescriptorProvider you need to add config element
"targetDescriptorProvider" to "/org.eclipse.sphinx.emf/schema/metaModelDescriptors.exsd" extension point. This config
element define the instance class of the provider , its id and the contentype and file extension for the one it is a
provider.Modifier and Type | Method and Description |
---|---|
IMetaModelDescriptor |
getDescriptor(org.eclipse.core.resources.IFile file)
Return the target meta model descriptor for the
file provided as argument. |
IMetaModelDescriptor |
getDescriptor(org.eclipse.emf.ecore.resource.Resource resource)
Return the target meta model descriptor for the
resource provided as argument. |
IMetaModelDescriptor getDescriptor(org.eclipse.core.resources.IFile file)
file
provided as argument.The
- file
to dertermine wich target metamodel descriptor must be retrieve a .target meta model descriptor
corresponding to the file
given in argument.IMetaModelDescriptor getDescriptor(org.eclipse.emf.ecore.resource.Resource resource)
resource
provided as argument.The
- resource
to dertermine wich target metamodel descriptor must be retrieve a .target meta model descriptor
corresponding to the resource
given in argument.