public static interface ProjectManager.IResourceDescriptor
Modifier and Type | Method and Description |
---|---|
void |
addedDynamicResource(ResourceSet resourceSet,
Resource resource) |
void |
addedGeneratedPackage(ResourceSet resourceSet,
EPackage ePackage) |
void |
configure(ResourceSet resourceSet,
ProjectManager.IResourceLoadStrategy resourceLoadStrategy,
ProjectManager.IConflictHandler conflictHandler) |
void |
configureResourceSetURIResourceMap(ResourceSet resourceSet,
Resource resource) |
URI |
getGenModelURI()
Return the project relative Gen Model URI.
|
URI |
getLocationURI()
Return the external filespace form of the model URI containing the package.
|
Iterable<? extends ProjectManager.IPackageDescriptor> |
getPackageDescriptors()
Return the descriptors for allpackages in this resource.
|
URI |
getPlatformPluginURI()
Return the platform:/plugin form of the model URI containing the package
|
URI |
getPlatformResourceURI()
Return the platform:/resource form of the model URI containing the package
|
ProjectManager.IProjectDescriptor |
getProjectDescriptor()
Return the Project Descriptor containing this resource.
|
URI |
getProjectRelativeEcorePackageURI(URI genModelRelativeEcorePackageURI) |
ProjectManager.IResourceLoadStatus |
getResourceLoadStatus(ResourceSet resourceSet)
Return IResourceLoadStatus for this resource in conjunction with resourceSet.
|
boolean |
hasEcoreModel()
Return true if setEcoreModel has defined the Ecore Model context.
|
void |
setEcoreModel(List<String> genModelRelativeEcorePackageUris,
Map<String,ProjectManager.IPackageDescriptor> nsURI2packageDescriptor)
Set the Ecore Model context of the resource from a list of URIs of the Ecore Packages relative to the
genModelURI, and a map of the package namespace URI to package descriptor.
|
void |
unload(ResourceSet resourceSet)
Unload the package registry to force a reload.
|
void addedDynamicResource(ResourceSet resourceSet, Resource resource)
void addedGeneratedPackage(ResourceSet resourceSet, EPackage ePackage)
void configure(ResourceSet resourceSet, ProjectManager.IResourceLoadStrategy resourceLoadStrategy, ProjectManager.IConflictHandler conflictHandler)
void configureResourceSetURIResourceMap(ResourceSet resourceSet, Resource resource)
URI getGenModelURI()
URI getLocationURI()
IllegalStateException
- if there is no Ecore model.Iterable<? extends ProjectManager.IPackageDescriptor> getPackageDescriptors()
URI getPlatformResourceURI()
IllegalStateException
- if there is no Ecore model.URI getPlatformPluginURI()
IllegalStateException
- if there is no Ecore model.ProjectManager.IProjectDescriptor getProjectDescriptor()
URI getProjectRelativeEcorePackageURI(URI genModelRelativeEcorePackageURI)
ProjectManager.IResourceLoadStatus getResourceLoadStatus(ResourceSet resourceSet)
boolean hasEcoreModel()
void setEcoreModel(List<String> genModelRelativeEcorePackageUris, Map<String,ProjectManager.IPackageDescriptor> nsURI2packageDescriptor)
void unload(ResourceSet resourceSet)
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.