public class EclipseProjectHandle extends EclipseFileHandle implements ProjectHandle
projectHandle, resource
DEFAULT_MODEL_REGISTRY_NAME, DEFAULT_MODEL_REGISTRY_NAME2, DEFAULT_MODEL_REGISTRY_PATH, DEFAULT_MODEL_REGISTRY_PATH2
Constructor and Description |
---|
EclipseProjectHandle(org.eclipse.core.resources.IProject project) |
Modifier and Type | Method and Description |
---|---|
EclipseFileHandle |
getFileHandle(org.eclipse.core.resources.IResource resource) |
EclipseFileHandle |
getFileHandle(java.lang.String name)
Return the FileHandle for the model located at name relative to the project,
if the name does not start with a /, or with respect to the root if it does.
|
org.eclipse.core.resources.IProject |
getProjectResource() |
java.lang.String |
getRegistryName()
Get the name of the registry model with respect to the project.
|
java.util.List<java.lang.String> |
getRegistryNames() |
org.eclipse.core.resources.IFile |
getRegistryResource() |
org.eclipse.emf.common.util.URI |
getRegistryURI()
Get the preferred URI of the registry model.
|
java.util.List<org.eclipse.emf.common.util.URI> |
getRegistryURIs()
Get all possible URIs of the registry model.
|
org.eclipse.emf.common.util.URI |
getURI()
Get the URI of the file.
|
void |
refreshRegistry()
Respond to a notification that the registry has changed.
|
void |
setRegistryName(java.lang.String name)
Define the name of the registry model with respect to the project.
|
void |
setRegistryNames(java.util.List<java.lang.String> names) |
exists, getAbsoluteName, getContents, getName, getParentFileHandle, getProjectHandle, getProjectRelativeName, getProjectRelativePath, getResource, isFile, isFolder, isProject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exists, getAbsoluteName, getContents, getName, getParentFileHandle, getProjectHandle, getProjectRelativeName, isFile, isFolder, isProject
public EclipseProjectHandle(org.eclipse.core.resources.IProject project)
public EclipseFileHandle getFileHandle(java.lang.String name)
ProjectHandle
getFileHandle
in interface ProjectHandle
public EclipseFileHandle getFileHandle(org.eclipse.core.resources.IResource resource)
public org.eclipse.core.resources.IProject getProjectResource()
public org.eclipse.core.resources.IFile getRegistryResource()
public org.eclipse.emf.common.util.URI getRegistryURI()
ProjectHandle
getRegistryURI
in interface ProjectHandle
public java.util.List<org.eclipse.emf.common.util.URI> getRegistryURIs()
ProjectHandle
getRegistryURIs
in interface ProjectHandle
public java.lang.String getRegistryName()
ProjectHandle
getRegistryName
in interface ProjectHandle
public java.util.List<java.lang.String> getRegistryNames()
public org.eclipse.emf.common.util.URI getURI()
FileHandle
getURI
in interface FileHandle
getURI
in class EclipseFileHandle
public void refreshRegistry()
ProjectHandle
refreshRegistry
in interface ProjectHandle
public void setRegistryName(java.lang.String name)
ProjectHandle
setRegistryName
in interface ProjectHandle
name
- registry namepublic void setRegistryNames(java.util.List<java.lang.String> names)