public static interface ProjectManager.IResourceDescriptor
Modifier and Type | Method and Description |
---|---|
void |
addedDynamicResource(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.ecore.resource.Resource resource) |
void |
addedGeneratedPackage(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.ecore.EPackage ePackage) |
void |
configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
ProjectManager.IResourceLoadStrategy resourceLoadStrategy,
ProjectManager.IConflictHandler conflictHandler) |
void |
configureResourceSetURIResourceMap(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.ecore.resource.Resource resource) |
org.eclipse.emf.common.util.URI |
getGenModelURI()
Return the project relative Gen Model URI.
|
org.eclipse.emf.common.util.URI |
getLocationURI()
Return the external filespace form of the model URI containing the package.
|
java.lang.Iterable<? extends ProjectManager.IPackageDescriptor> |
getPackageDescriptors()
Return the descriptors for allpackages in this resource.
|
org.eclipse.emf.common.util.URI |
getPlatformPluginURI()
Return the platform:/plugin form of the model URI containing the package
|
org.eclipse.emf.common.util.URI |
getPlatformResourceURI()
Return the platform:/resource form of the model URI containing the package
|
ProjectManager.IProjectDescriptor |
getProjectDescriptor()
Return the Project Descriptor containing this resource.
|
org.eclipse.emf.common.util.URI |
getProjectRelativeEcorePackageURI(org.eclipse.emf.common.util.URI genModelRelativeEcorePackageURI) |
ProjectManager.IResourceLoadStatus |
getResourceLoadStatus(org.eclipse.emf.ecore.resource.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(java.util.List<java.lang.String> genModelRelativeEcorePackageUris,
java.util.Map<java.lang.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(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Unload the package registry to force a reload.
|
void addedDynamicResource(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet, @NonNull org.eclipse.emf.ecore.resource.Resource resource)
void addedGeneratedPackage(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet, @NonNull org.eclipse.emf.ecore.EPackage ePackage)
void configure(@Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet, @NonNull ProjectManager.IResourceLoadStrategy resourceLoadStrategy, @Nullable ProjectManager.IConflictHandler conflictHandler)
void configureResourceSetURIResourceMap(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet, @NonNull org.eclipse.emf.ecore.resource.Resource resource)
@NonNull org.eclipse.emf.common.util.URI getGenModelURI()
@NonNull org.eclipse.emf.common.util.URI getLocationURI()
java.lang.IllegalStateException
- if there is no Ecore model.java.lang.Iterable<? extends ProjectManager.IPackageDescriptor> getPackageDescriptors()
@NonNull org.eclipse.emf.common.util.URI getPlatformResourceURI()
java.lang.IllegalStateException
- if there is no Ecore model.@NonNull org.eclipse.emf.common.util.URI getPlatformPluginURI()
java.lang.IllegalStateException
- if there is no Ecore model.@NonNull ProjectManager.IProjectDescriptor getProjectDescriptor()
@NonNull org.eclipse.emf.common.util.URI getProjectRelativeEcorePackageURI(@NonNull org.eclipse.emf.common.util.URI genModelRelativeEcorePackageURI)
@NonNull ProjectManager.IResourceLoadStatus getResourceLoadStatus(@Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
boolean hasEcoreModel()
void setEcoreModel(@NonNull java.util.List<java.lang.String> genModelRelativeEcorePackageUris, @NonNull java.util.Map<java.lang.String,ProjectManager.IPackageDescriptor> nsURI2packageDescriptor)
void unload(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)