public static interface ProjectManager.IResourceLoadStatus
Modifier and Type | Method and Description |
---|---|
void |
configureDelegatingResource()
Configure the ResourceSet.URIResourceMap to resolve platform:/plugin and platform:/resource
references to a pseudo resource that delegates to generated packages.
|
void |
configureEPackageRegistry(org.eclipse.emf.ecore.resource.Resource resource)
Configure the EPackage.Registry to resolve namesapce URI references to the specified resource.
|
void |
configureResourceSetURIResourceMap(org.eclipse.emf.ecore.resource.Resource resource)
Configure the ResourceSet.URIResourceMap to resolve platform:/plugin and platform:/resource
references to the specified resource.
|
void |
dispose()
Dispose of all facilities used by the IResourceLoadStatus, and remove all EPackageDescriptor entries.
|
org.eclipse.emf.ecore.EPackage |
getConflictingDynamicResource(org.eclipse.emf.ecore.EPackage ePackage)
Return the EPackage to be used for a platform-resource/plugin URI after a namespace URI has already been loaded.
|
org.eclipse.emf.ecore.EPackage |
getFirstEPackage()
Return the first loaded EPackage which may be part of a model or a Java generated EPackageinstance..
|
ProjectManager.IPackageLoadStatus |
getPackageLoadStatus(ProjectManager.IPackageDescriptor packageDescriptor)
Return the package load status for the package identified by packageDescriptor
|
org.eclipse.emf.ecore.EPackage.Registry |
getPackageRegistry()
Return the package registry maintained by this resource load status
|
ProjectManager.IResourceDescriptor |
getResourceDescriptor()
Return the descriptor for the resource.
|
ProjectManager.IResourceLoadStrategy |
getResourceLoadStrategy()
Return the configured resource loading strategy.
|
org.eclipse.emf.ecore.resource.ResourceSet |
getResourceSet()
Return the ResourceSet to which the resource logically belongs.
|
org.eclipse.emf.ecore.resource.Resource |
loadDynamicResource(org.eclipse.emf.common.util.URI nsURI)
Load and return the EPackage appropriate to the platform resource or plugin resource using nsURI to identify
a conflicting nsURI access,
|
void |
loadGeneratedPackages()
Load all the Java generated EPackage instances for the resource.
|
void |
setConflictHandler(ProjectManager.IConflictHandler conflictHandler)
Define a new conflict handler.
|
void |
setGenerationInProgress(boolean isGenerating)
Set true by AS2Ecore to inhibit auto-loading of newly added EPackages.
|
void |
setResource(org.eclipse.emf.ecore.resource.Resource resource)
Define the resource once it has been loaded.
|
void |
setResourceLoadStrategy(ProjectManager.IResourceLoadStrategy resourceLoadStrategy)
Define a new package load strategy.
|
void |
unloadedResource()
Reset the status following notification that the model has been unloaded.
|
void configureDelegatingResource()
void configureEPackageRegistry(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
void configureResourceSetURIResourceMap(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
void dispose()
@Nullable org.eclipse.emf.ecore.EPackage getConflictingDynamicResource(@NonNull org.eclipse.emf.ecore.EPackage ePackage)
@Nullable org.eclipse.emf.ecore.EPackage getFirstEPackage()
@Nullable ProjectManager.IPackageLoadStatus getPackageLoadStatus(@NonNull ProjectManager.IPackageDescriptor packageDescriptor)
@NonNull ProjectManager.IResourceDescriptor getResourceDescriptor()
@NonNull ProjectManager.IResourceLoadStrategy getResourceLoadStrategy()
@NonNull org.eclipse.emf.ecore.EPackage.Registry getPackageRegistry()
@Nullable org.eclipse.emf.ecore.resource.ResourceSet getResourceSet()
@Nullable org.eclipse.emf.ecore.resource.Resource loadDynamicResource(@NonNull org.eclipse.emf.common.util.URI nsURI)
void loadGeneratedPackages()
void setConflictHandler(@Nullable ProjectManager.IConflictHandler conflictHandler)
void setGenerationInProgress(boolean isGenerating)
void setResource(@NonNull org.eclipse.emf.ecore.resource.Resource resource)
void setResourceLoadStrategy(@NonNull ProjectManager.IResourceLoadStrategy resourceLoadStrategy)
void unloadedResource()