public static class StandaloneProjectMap.ProjectDescriptor extends java.lang.Object implements StandaloneProjectMap.IProjectDescriptor.Internal
StandaloneProjectMap.IProjectDescriptor.Internal
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.emf.common.util.URI |
locationURI
The resolveable location.
|
protected java.lang.String |
name
The project/bundle/plugin name; e.g.
|
Constructor and Description |
---|
StandaloneProjectMap.ProjectDescriptor(java.lang.String name,
org.eclipse.emf.common.util.URI locationURI) |
Modifier and Type | Method and Description |
---|---|
StandaloneProjectMap.IPackageDescriptor.Internal |
createPackageDescriptor(org.eclipse.emf.common.util.URI nsURI,
org.eclipse.emf.common.util.URI genModelURI)
Internal callback from Ecore model pre-parse to register the
Ecore Package URI.
|
java.io.File |
getLocationFile(java.lang.String projectRelativeFileName)
Return the physical location of a projectRelativeFileName as a File.
|
org.eclipse.emf.common.util.URI |
getLocationURI()
Return the physical location of this project.
|
org.eclipse.emf.common.util.URI |
getLocationURI(java.lang.String projectRelativeFileName)
Return the physical location of a projectRelativeFileName as a URI.
|
java.lang.String |
getName() |
StandaloneProjectMap.IPackageDescriptor |
getPackageDescriptor(org.eclipse.emf.common.util.URI nsURI)
Return the package descriptor for the package with a given nsURI or
null if none known in the project.
|
java.util.Collection<StandaloneProjectMap.IPackageDescriptor> |
getPackageDescriptors()
Return all package descriptor in the project.
|
org.eclipse.emf.common.util.URI |
getPlatformPluginURI()
Return the location of this project as a platform:/plugin URI.
|
org.eclipse.emf.common.util.URI |
getPlatformPluginURI(java.lang.String projectRelativeFileName)
Return the location of a projectRelativeFileName as a
platform:/resource URI.
|
org.eclipse.emf.common.util.URI |
getPlatformResourceURI()
Return the location of this project as a platform:/resource URI.
|
org.eclipse.emf.common.util.URI |
getPlatformResourceURI(java.lang.String projectRelativeFileName)
Return the location of a projectRelativeFileName as a
platform:/resource URI.
|
void |
initializeGenModelLocationMap() |
void |
initializePackageRegistration(org.eclipse.emf.ecore.EPackage.Registry packageRegistry,
StandaloneProjectMap.IPackageDescriptor packageDescriptor) |
void |
initializePlatformResourceMap() |
void |
initializeURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap) |
void |
installEcoreModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
org.eclipse.emf.common.util.URI nsURI) |
java.lang.String |
toString() |
void |
useModelsAndPackages(org.eclipse.emf.ecore.resource.Resource ecoreResource) |
void |
usePackages(org.eclipse.emf.ecore.resource.Resource ecoreResource)
Treat any top level packages in ecoreResource as preloaded packages
for use by corresponding URIs in this project.
|
protected final java.lang.String name
protected final org.eclipse.emf.common.util.URI locationURI
public StandaloneProjectMap.ProjectDescriptor(java.lang.String name, org.eclipse.emf.common.util.URI locationURI)
public StandaloneProjectMap.IPackageDescriptor.Internal createPackageDescriptor(org.eclipse.emf.common.util.URI nsURI, org.eclipse.emf.common.util.URI genModelURI)
StandaloneProjectMap.IProjectDescriptor.Internal
createPackageDescriptor
in interface StandaloneProjectMap.IProjectDescriptor.Internal
public org.eclipse.emf.common.util.URI getLocationURI()
StandaloneProjectMap.IProjectDescriptor
getLocationURI
in interface StandaloneProjectMap.IProjectDescriptor
public org.eclipse.emf.common.util.URI getLocationURI(java.lang.String projectRelativeFileName)
StandaloneProjectMap.IProjectDescriptor
getLocationURI
in interface StandaloneProjectMap.IProjectDescriptor
public java.io.File getLocationFile(java.lang.String projectRelativeFileName)
StandaloneProjectMap.IProjectDescriptor
getLocationFile
in interface StandaloneProjectMap.IProjectDescriptor
public java.lang.String getName()
public StandaloneProjectMap.IPackageDescriptor getPackageDescriptor(org.eclipse.emf.common.util.URI nsURI)
StandaloneProjectMap.IProjectDescriptor
getPackageDescriptor
in interface StandaloneProjectMap.IProjectDescriptor
public java.util.Collection<StandaloneProjectMap.IPackageDescriptor> getPackageDescriptors()
StandaloneProjectMap.IProjectDescriptor
getPackageDescriptors
in interface StandaloneProjectMap.IProjectDescriptor
public org.eclipse.emf.common.util.URI getPlatformPluginURI()
StandaloneProjectMap.IProjectDescriptor
getPlatformPluginURI
in interface StandaloneProjectMap.IProjectDescriptor
public org.eclipse.emf.common.util.URI getPlatformPluginURI(java.lang.String projectRelativeFileName)
StandaloneProjectMap.IProjectDescriptor
getPlatformPluginURI
in interface StandaloneProjectMap.IProjectDescriptor
public org.eclipse.emf.common.util.URI getPlatformResourceURI()
StandaloneProjectMap.IProjectDescriptor
getPlatformResourceURI
in interface StandaloneProjectMap.IProjectDescriptor
public org.eclipse.emf.common.util.URI getPlatformResourceURI(java.lang.String projectRelativeFileName)
StandaloneProjectMap.IProjectDescriptor
getPlatformResourceURI
in interface StandaloneProjectMap.IProjectDescriptor
public void installEcoreModel(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, org.eclipse.emf.common.util.URI nsURI)
public void initializeGenModelLocationMap()
initializeGenModelLocationMap
in interface StandaloneProjectMap.IProjectDescriptor
public void initializePackageRegistration(org.eclipse.emf.ecore.EPackage.Registry packageRegistry, StandaloneProjectMap.IPackageDescriptor packageDescriptor)
initializePackageRegistration
in interface StandaloneProjectMap.IProjectDescriptor
public void initializePlatformResourceMap()
initializePlatformResourceMap
in interface StandaloneProjectMap.IProjectDescriptor
public void initializeURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)
initializeURIMap
in interface StandaloneProjectMap.IProjectDescriptor
public java.lang.String toString()
toString
in class java.lang.Object
public void useModelsAndPackages(org.eclipse.emf.ecore.resource.Resource ecoreResource)
useModelsAndPackages
in interface StandaloneProjectMap.IProjectDescriptor
public void usePackages(org.eclipse.emf.ecore.resource.Resource ecoreResource)
StandaloneProjectMap.IProjectDescriptor
usePackages
in interface StandaloneProjectMap.IProjectDescriptor