public static final class StandaloneProjectMap.PackageLoadStatus extends Object implements ProjectManager.IPackageLoadStatus
Constructor and Description |
---|
PackageLoadStatus(StandaloneProjectMap.AbstractResourceLoadStatus resourceLoadStatus,
ProjectManager.IPackageDescriptor packageDescriptor) |
Modifier and Type | Method and Description |
---|---|
void |
configureEPackageRegistry(ResourceSet resourceSet)
Configure the resourceSet EPackage.Registry for this package to resolve to the defined
generated/loaded EPackage.
|
void |
dispose()
Dispose of all facilities used by the PackageLoadStatus, and remove all EPackageDescriptor entries.
|
EPackage |
getConflictingGeneratedPackage()
Return the EPackage to be used for a namespace URI after a platform-resource/plugin URI has already been loaded.
|
EPackage |
getEPackage()
Return the generated EPackage instance, or null if none loaded.
|
EPackage |
getEPackageInstance()
Return the generated EPackage instance without affecting the prevailing status.
|
EPackage |
getFirstEPackage()
Return the EPackage resolved by the first loadEPackageByModelURI/loadEPackageByNsURI, or null if none loaded.
|
EPackage |
getModel()
Return the loaded EPackages, or null if none loaded.
|
ProjectManager.IPackageDescriptor |
getPackageDescriptor()
Return the descriptor for the package.
|
ProjectManager.IResourceLoadStatus |
getResourceLoadStatus()
Get the status of the resource containing this package.
|
ProjectManager.IResourceLoadStrategy |
getResourceLoadStrategy() |
EPackage |
loadEPackage()
Load and return the generated EPackage instance appropriate to the namespace URI.
|
void |
setEPackage(EPackage ePackage)
Define the generated EPackage for this package.
|
void |
setModel(EPackage ePackage)
Define the loaded EPackage for this package.
|
String |
toString() |
void |
unloadedResource()
Reset the status following notiofication that the model has been unloaded.
|
public PackageLoadStatus(StandaloneProjectMap.AbstractResourceLoadStatus resourceLoadStatus, ProjectManager.IPackageDescriptor packageDescriptor)
public void configureEPackageRegistry(ResourceSet resourceSet)
ProjectManager.IPackageLoadStatus
configureEPackageRegistry
in interface ProjectManager.IPackageLoadStatus
public void dispose()
ProjectManager.IPackageLoadStatus
dispose
in interface ProjectManager.IPackageLoadStatus
public EPackage getConflictingGeneratedPackage()
ProjectManager.IPackageLoadStatus
getConflictingGeneratedPackage
in interface ProjectManager.IPackageLoadStatus
public EPackage getEPackage()
ProjectManager.IPackageLoadStatus
getEPackage
in interface ProjectManager.IPackageLoadStatus
public EPackage getEPackageInstance()
ProjectManager.IPackageLoadStatus
getEPackageInstance
in interface ProjectManager.IPackageLoadStatus
public EPackage getFirstEPackage()
ProjectManager.IPackageLoadStatus
getFirstEPackage
in interface ProjectManager.IPackageLoadStatus
public EPackage getModel()
ProjectManager.IPackageLoadStatus
getModel
in interface ProjectManager.IPackageLoadStatus
public ProjectManager.IPackageDescriptor getPackageDescriptor()
ProjectManager.IPackageLoadStatus
getPackageDescriptor
in interface ProjectManager.IPackageLoadStatus
public ProjectManager.IResourceLoadStrategy getResourceLoadStrategy()
public ProjectManager.IResourceLoadStatus getResourceLoadStatus()
ProjectManager.IPackageLoadStatus
getResourceLoadStatus
in interface ProjectManager.IPackageLoadStatus
public EPackage loadEPackage()
ProjectManager.IPackageLoadStatus
loadEPackage
in interface ProjectManager.IPackageLoadStatus
public void setEPackage(EPackage ePackage)
ProjectManager.IPackageLoadStatus
setEPackage
in interface ProjectManager.IPackageLoadStatus
public void setModel(EPackage ePackage)
ProjectManager.IPackageLoadStatus
setModel
in interface ProjectManager.IPackageLoadStatus
public void unloadedResource()
ProjectManager.IPackageLoadStatus
unloadedResource
in interface ProjectManager.IPackageLoadStatus
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.