public class JavaProjectHandle extends JavaFileHandle implements ProjectHandle
file, projectHandle
DEFAULT_MODEL_REGISTRY_NAME, DEFAULT_MODEL_REGISTRY_NAME2, DEFAULT_MODEL_REGISTRY_PATH, DEFAULT_MODEL_REGISTRY_PATH2
Constructor and Description |
---|
JavaProjectHandle(java.io.File projectFile,
java.lang.String registryPath) |
JavaProjectHandle(java.lang.String projectFile,
java.lang.String registryPath) |
Modifier and Type | Method and Description |
---|---|
JavaFileHandle |
getFileHandle(java.io.File file) |
JavaFileHandle |
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.
|
JavaFileHandle |
getParentFileHandle()
Return the handle of the parent of this handle.
|
java.io.File |
getRegistryFile() |
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.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.
|
java.lang.String |
getRoot() |
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) |
void |
setRoot(java.lang.String rootPath) |
createCanonicalFileName, exists, getAbsoluteName, getContents, getFile, getName, getProjectHandle, getProjectRelativeName, getProjectRelativePath, isFile, isFolder, isProject, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exists, getAbsoluteName, getContents, getName, getProjectHandle, getProjectRelativeName, isFile, isFolder, isProject
public JavaProjectHandle(java.lang.String projectFile, java.lang.String registryPath) throws java.io.IOException
java.io.IOException
public JavaProjectHandle(java.io.File projectFile, java.lang.String registryPath) throws java.io.IOException
java.io.IOException
public JavaFileHandle getFileHandle(java.lang.String name) throws java.io.IOException
ProjectHandle
getFileHandle
in interface ProjectHandle
java.io.IOException
public JavaFileHandle getFileHandle(java.io.File file) throws java.io.IOException
java.io.IOException
public JavaFileHandle getParentFileHandle()
FileHandle
getParentFileHandle
in interface FileHandle
getParentFileHandle
in class JavaFileHandle
public java.io.File getRegistryFile()
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 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 getRoot()
public org.eclipse.emf.common.util.URI getURI()
FileHandle
getURI
in interface FileHandle
getURI
in class JavaFileHandle
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)
public void setRoot(java.lang.String rootPath)