public static class StandaloneProjectMap.ProjectDescriptor extends java.lang.Object implements ProjectManager.IProjectDescriptor.IProjectDescriptorExtension
ProjectManager.IProjectDescriptor.IProjectDescriptorExtension
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.
|
protected StandaloneProjectMap |
projectMap
The overall ProjectMap
|
Constructor and Description |
---|
ProjectDescriptor(StandaloneProjectMap projectMap,
java.lang.String name,
org.eclipse.emf.common.util.URI locationURI) |
Modifier and Type | Method and Description |
---|---|
void |
addPackageDescriptor(ProjectManager.IPackageDescriptor packageDescriptor)
Call back to add a packageDescriptor to the project.
|
void |
addResourceDescriptor(ProjectManager.IResourceDescriptor resourceDescriptor)
Call back to add a resourceDescriptor to the project.
|
void |
configure(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
ProjectManager.IResourceLoadStrategy resourceLoadStrategy,
ProjectManager.IConflictHandler conflictHandler)
Configure the resourceSet-specific status of for this resource to use
a strategy and a conflictHandler.
|
ProjectManager.IResourceDescriptor |
createResourceDescriptor(java.lang.String genModel,
java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> nsURI2className)
Create an IResourceDescriptor for a projectRelativeGenModelUri comprsising a map of NsURI to className.
|
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()
Return project name.
|
ProjectManager.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.lang.Iterable<ProjectManager.IPackageDescriptor> |
getPackageDescriptors()
Return all the package descriptors for this 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.
|
StandaloneProjectMap |
getProjectManager()
Return the overall ProjectMap.
|
java.util.Collection<ProjectManager.IResourceDescriptor> |
getResourceDescriptors()
Return all packages descriptors in the project.
|
void |
initializeGenModelLocationMap(java.util.Map<org.eclipse.emf.common.util.URI,ProjectManager.IPackageDescriptor> nsURI2package) |
void |
initializePlatformResourceMap() |
void |
initializeURIMap(java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap) |
java.lang.String |
toString() |
void |
unload(org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
@NonNull protected final StandaloneProjectMap projectMap
@NonNull protected final java.lang.String name
@NonNull protected final org.eclipse.emf.common.util.URI locationURI
public ProjectDescriptor(@NonNull StandaloneProjectMap projectMap, @NonNull java.lang.String name, @NonNull org.eclipse.emf.common.util.URI locationURI)
public void addPackageDescriptor(@NonNull ProjectManager.IPackageDescriptor packageDescriptor)
ProjectManager.IProjectDescriptor
addPackageDescriptor
in interface ProjectManager.IProjectDescriptor
public void addResourceDescriptor(@NonNull ProjectManager.IResourceDescriptor resourceDescriptor)
ProjectManager.IProjectDescriptor
addResourceDescriptor
in interface ProjectManager.IProjectDescriptor
public void configure(@Nullable org.eclipse.emf.ecore.resource.ResourceSet resourceSet, @NonNull ProjectManager.IResourceLoadStrategy resourceLoadStrategy, @Nullable ProjectManager.IConflictHandler conflictHandler)
ProjectManager.IProjectDescriptor
configure
in interface ProjectManager.IProjectDescriptor
@NonNull public ProjectManager.IResourceDescriptor createResourceDescriptor(@NonNull java.lang.String genModel, @NonNull java.util.Map<org.eclipse.emf.common.util.URI,java.lang.String> nsURI2className)
ProjectManager.IProjectDescriptor
createResourceDescriptor
in interface ProjectManager.IProjectDescriptor
@NonNull public org.eclipse.emf.common.util.URI getLocationURI()
ProjectManager.IProjectDescriptor
getLocationURI
in interface ProjectManager.IProjectDescriptor
@NonNull public org.eclipse.emf.common.util.URI getLocationURI(@NonNull java.lang.String projectRelativeFileName)
ProjectManager.IProjectDescriptor
getLocationURI
in interface ProjectManager.IProjectDescriptor
@NonNull public java.io.File getLocationFile(@NonNull java.lang.String projectRelativeFileName)
ProjectManager.IProjectDescriptor
getLocationFile
in interface ProjectManager.IProjectDescriptor
@NonNull public java.lang.String getName()
ProjectManager.IProjectDescriptor
getName
in interface ProjectManager.IProjectDescriptor
@Nullable public ProjectManager.IPackageDescriptor getPackageDescriptor(@NonNull org.eclipse.emf.common.util.URI nsURI)
ProjectManager.IProjectDescriptor
getPackageDescriptor
in interface ProjectManager.IProjectDescriptor
@Nullable public java.util.Collection<ProjectManager.IResourceDescriptor> getResourceDescriptors()
ProjectManager.IProjectDescriptor
getResourceDescriptors
in interface ProjectManager.IProjectDescriptor
@NonNull public org.eclipse.emf.common.util.URI getPlatformPluginURI()
ProjectManager.IProjectDescriptor
getPlatformPluginURI
in interface ProjectManager.IProjectDescriptor
@NonNull public org.eclipse.emf.common.util.URI getPlatformPluginURI(@NonNull java.lang.String projectRelativeFileName)
ProjectManager.IProjectDescriptor
getPlatformPluginURI
in interface ProjectManager.IProjectDescriptor
@NonNull public org.eclipse.emf.common.util.URI getPlatformResourceURI()
ProjectManager.IProjectDescriptor
getPlatformResourceURI
in interface ProjectManager.IProjectDescriptor
@NonNull public org.eclipse.emf.common.util.URI getPlatformResourceURI(@NonNull java.lang.String projectRelativeFileName)
ProjectManager.IProjectDescriptor
getPlatformResourceURI
in interface ProjectManager.IProjectDescriptor
@Nullable public java.lang.Iterable<ProjectManager.IPackageDescriptor> getPackageDescriptors()
ProjectManager.IProjectDescriptor.IProjectDescriptorExtension
getPackageDescriptors
in interface ProjectManager.IProjectDescriptor.IProjectDescriptorExtension
@NonNull public StandaloneProjectMap getProjectManager()
ProjectManager.IProjectDescriptor
getProjectManager
in interface ProjectManager.IProjectDescriptor
public void initializeGenModelLocationMap(@NonNull java.util.Map<org.eclipse.emf.common.util.URI,ProjectManager.IPackageDescriptor> nsURI2package)
initializeGenModelLocationMap
in interface ProjectManager.IProjectDescriptor
public void initializePlatformResourceMap()
initializePlatformResourceMap
in interface ProjectManager.IProjectDescriptor
public void initializeURIMap(@NonNull java.util.Map<org.eclipse.emf.common.util.URI,org.eclipse.emf.common.util.URI> uriMap)
initializeURIMap
in interface ProjectManager.IProjectDescriptor
public void unload(@NonNull org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
unload
in interface ProjectManager.IProjectDescriptor
public java.lang.String toString()
toString
in class java.lang.Object