public class JavaProjectHandle extends JavaFileHandle implements ProjectHandle
file, projectHandleDEFAULT_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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitexists, getAbsoluteName, getContents, getName, getProjectHandle, getProjectRelativeName, isFile, isFolder, isProjectpublic JavaProjectHandle(java.lang.String projectFile,
java.lang.String registryPath)
throws java.io.IOException
java.io.IOExceptionpublic JavaProjectHandle(java.io.File projectFile,
java.lang.String registryPath)
throws java.io.IOException
java.io.IOExceptionpublic JavaFileHandle getFileHandle(java.lang.String name) throws java.io.IOException
ProjectHandlegetFileHandle in interface ProjectHandlejava.io.IOExceptionpublic JavaFileHandle getFileHandle(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic JavaFileHandle getParentFileHandle()
FileHandlegetParentFileHandle in interface FileHandlegetParentFileHandle in class JavaFileHandlepublic java.io.File getRegistryFile()
public java.lang.String getRegistryName()
ProjectHandlegetRegistryName in interface ProjectHandlepublic java.util.List<java.lang.String> getRegistryNames()
public org.eclipse.emf.common.util.URI getRegistryURI()
ProjectHandlegetRegistryURI in interface ProjectHandlepublic java.util.List<org.eclipse.emf.common.util.URI> getRegistryURIs()
ProjectHandlegetRegistryURIs in interface ProjectHandlepublic java.lang.String getRoot()
public org.eclipse.emf.common.util.URI getURI()
FileHandlegetURI in interface FileHandlegetURI in class JavaFileHandlepublic void refreshRegistry()
ProjectHandlerefreshRegistry in interface ProjectHandlepublic void setRegistryName(java.lang.String name)
ProjectHandlesetRegistryName in interface ProjectHandlename - registry namepublic void setRegistryNames(java.util.List<java.lang.String> names)
public void setRoot(java.lang.String rootPath)