public abstract static class StandaloneProjectMap.AbstractResourceDescriptor extends Object implements 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.
|
List<? 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.
|
public void addedDynamicResource(ResourceSet resourceSet, Resource resource)
addedDynamicResource
in interface ProjectManager.IResourceDescriptor
public void addedGeneratedPackage(ResourceSet resourceSet, EPackage ePackage)
addedGeneratedPackage
in interface ProjectManager.IResourceDescriptor
public void configure(ResourceSet resourceSet, ProjectManager.IResourceLoadStrategy resourceLoadStrategy, ProjectManager.IConflictHandler conflictHandler)
configure
in interface ProjectManager.IResourceDescriptor
public void configureResourceSetURIResourceMap(ResourceSet resourceSet, Resource resource)
configureResourceSetURIResourceMap
in interface ProjectManager.IResourceDescriptor
public URI getGenModelURI()
ProjectManager.IResourceDescriptor
getGenModelURI
in interface ProjectManager.IResourceDescriptor
public URI getLocationURI()
ProjectManager.IResourceDescriptor
getLocationURI
in interface ProjectManager.IResourceDescriptor
public List<? extends ProjectManager.IPackageDescriptor> getPackageDescriptors()
ProjectManager.IResourceDescriptor
getPackageDescriptors
in interface ProjectManager.IResourceDescriptor
public URI getPlatformPluginURI()
ProjectManager.IResourceDescriptor
getPlatformPluginURI
in interface ProjectManager.IResourceDescriptor
public URI getPlatformResourceURI()
ProjectManager.IResourceDescriptor
getPlatformResourceURI
in interface ProjectManager.IResourceDescriptor
public ProjectManager.IProjectDescriptor getProjectDescriptor()
ProjectManager.IResourceDescriptor
getProjectDescriptor
in interface ProjectManager.IResourceDescriptor
public URI getProjectRelativeEcorePackageURI(URI genModelRelativeEcorePackageURI)
getProjectRelativeEcorePackageURI
in interface ProjectManager.IResourceDescriptor
public ProjectManager.IResourceLoadStatus getResourceLoadStatus(ResourceSet resourceSet)
ProjectManager.IResourceDescriptor
getResourceLoadStatus
in interface ProjectManager.IResourceDescriptor
public boolean hasEcoreModel()
ProjectManager.IResourceDescriptor
hasEcoreModel
in interface ProjectManager.IResourceDescriptor
public void setEcoreModel(List<String> genModelRelativeEcorePackageUris, Map<String,ProjectManager.IPackageDescriptor> nsURI2packageDescriptor)
ProjectManager.IResourceDescriptor
setEcoreModel
in interface ProjectManager.IResourceDescriptor
public void unload(ResourceSet resourceSet)
ProjectManager.IResourceDescriptor
unload
in interface ProjectManager.IResourceDescriptor
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.