public abstract static class StandaloneProjectMap.AbstractResourceLoadStatus extends Object implements 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(Resource resource)
Configure the EPackage.Registry to resolve namesapce URI references to the specified resource.
|
void |
configureResourceSetURIResourceMap(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.
|
EPackage |
getConflictingDynamicResource(EPackage ePackage)
Return the EPackage to be used for a platform-resource/plugin URI after a namespace URI has already been loaded.
|
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
|
EPackage.Registry |
getPackageRegistry()
Return the package registry maintained by this resource load status
|
Resource |
getResource() |
ProjectManager.IResourceDescriptor |
getResourceDescriptor()
Return the descriptor for the resource.
|
ProjectManager.IResourceLoadStrategy |
getResourceLoadStrategy()
Return the configured resource loading strategy.
|
ResourceSet |
getResourceSet()
Return the ResourceSet to which the resource logically belongs.
|
Notifier |
getTarget() |
EPackage |
handleConflictingGeneratedPackage(ProjectManager.IPackageLoadStatus packageLoadStatus) |
boolean |
isAdapterForType(Object type) |
Resource |
loadDynamicResource(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 |
notifyChanged(Notification notification) |
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(Resource resource)
Define the resource once it has been loaded.
|
void |
setResourceLoadStrategy(ProjectManager.IResourceLoadStrategy resourceLoadStrategy)
Define a new package load strategy.
|
void |
setTarget(Notifier newTarget) |
String |
toString() |
void |
unloadedResource()
Reset the status following notification that the model has been unloaded.
|
public void configureEPackageRegistry(Resource resource)
ProjectManager.IResourceLoadStatus
configureEPackageRegistry
in interface ProjectManager.IResourceLoadStatus
public void configureDelegatingResource()
ProjectManager.IResourceLoadStatus
configureDelegatingResource
in interface ProjectManager.IResourceLoadStatus
public void configureResourceSetURIResourceMap(Resource resource)
ProjectManager.IResourceLoadStatus
configureResourceSetURIResourceMap
in interface ProjectManager.IResourceLoadStatus
public void dispose()
ProjectManager.IResourceLoadStatus
dispose
in interface ProjectManager.IResourceLoadStatus
public EPackage getConflictingDynamicResource(EPackage ePackage)
ProjectManager.IResourceLoadStatus
getConflictingDynamicResource
in interface ProjectManager.IResourceLoadStatus
public EPackage getFirstEPackage()
ProjectManager.IResourceLoadStatus
getFirstEPackage
in interface ProjectManager.IResourceLoadStatus
public ProjectManager.IPackageLoadStatus getPackageLoadStatus(ProjectManager.IPackageDescriptor packageDescriptor)
ProjectManager.IResourceLoadStatus
getPackageLoadStatus
in interface ProjectManager.IResourceLoadStatus
public ProjectManager.IResourceLoadStrategy getResourceLoadStrategy()
ProjectManager.IResourceLoadStatus
getResourceLoadStrategy
in interface ProjectManager.IResourceLoadStatus
public EPackage.Registry getPackageRegistry()
ProjectManager.IResourceLoadStatus
getPackageRegistry
in interface ProjectManager.IResourceLoadStatus
public ProjectManager.IResourceDescriptor getResourceDescriptor()
ProjectManager.IResourceLoadStatus
getResourceDescriptor
in interface ProjectManager.IResourceLoadStatus
public Resource getResource()
public ResourceSet getResourceSet()
ProjectManager.IResourceLoadStatus
getResourceSet
in interface ProjectManager.IResourceLoadStatus
public Notifier getTarget()
public EPackage handleConflictingGeneratedPackage(ProjectManager.IPackageLoadStatus packageLoadStatus)
public boolean isAdapterForType(Object type)
public void loadGeneratedPackages()
ProjectManager.IResourceLoadStatus
loadGeneratedPackages
in interface ProjectManager.IResourceLoadStatus
public Resource loadDynamicResource(URI nsURI)
ProjectManager.IResourceLoadStatus
loadDynamicResource
in interface ProjectManager.IResourceLoadStatus
public void notifyChanged(Notification notification)
public void setConflictHandler(ProjectManager.IConflictHandler conflictHandler)
ProjectManager.IResourceLoadStatus
setConflictHandler
in interface ProjectManager.IResourceLoadStatus
public void setGenerationInProgress(boolean isGenerating)
setGenerationInProgress
in interface ProjectManager.IResourceLoadStatus
public void setResource(Resource resource)
ProjectManager.IResourceLoadStatus
setResource
in interface ProjectManager.IResourceLoadStatus
public void setResourceLoadStrategy(ProjectManager.IResourceLoadStrategy resourceLoadStrategy)
ProjectManager.IResourceLoadStatus
setResourceLoadStrategy
in interface ProjectManager.IResourceLoadStatus
public void setTarget(Notifier newTarget)
public void unloadedResource()
ProjectManager.IResourceLoadStatus
unloadedResource
in interface ProjectManager.IResourceLoadStatus
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.