java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.gmt.umlx.registry.eclipse.EclipseFileHandle
org.eclipse.gmt.umlx.registry.eclipse.EclipseProjectHandle
public class EclipseProjectHandle
Field Summary |
---|
Fields inherited from interface org.eclipse.gmt.umlx.registry.environment.AbstractProjectHandle |
---|
DEFAULT_MODEL_REGISTRY_NAME |
Constructor Summary | |
---|---|
EclipseProjectHandle(org.eclipse.core.resources.IProject project)
|
Method Summary | |
---|---|
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. |
org.eclipse.core.resources.IFile |
getRegistryResource()
|
org.eclipse.emf.common.util.URI |
getRegistryURI()
Get the URI 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. |
Methods inherited from class org.eclipse.gmt.umlx.registry.eclipse.EclipseFileHandle |
---|
exists, getAbsoluteName, getContents, getName, getParentFileHandle, getProjectHandle, getProjectRelativeName, getProjectRelativePath, getResource, isFile, isFolder, isProject, toString |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
---|
getAdapter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.gmt.umlx.registry.environment.AbstractFileHandle |
---|
exists, getAbsoluteName, getContents, getName, getParentFileHandle, getProjectHandle, getProjectRelativeName, isFile, isFolder, isProject |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Constructor Detail |
---|
public EclipseProjectHandle(org.eclipse.core.resources.IProject project)
Method Detail |
---|
public EclipseFileHandle getFileHandle(java.lang.String name)
AbstractProjectHandle
getFileHandle
in interface AbstractProjectHandle
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()
AbstractProjectHandle
getRegistryURI
in interface AbstractProjectHandle
public java.lang.String getRegistryName()
AbstractProjectHandle
getRegistryName
in interface AbstractProjectHandle
public org.eclipse.emf.common.util.URI getURI()
AbstractFileHandle
getURI
in interface AbstractFileHandle
getURI
in class EclipseFileHandle
public void refreshRegistry()
AbstractProjectHandle
refreshRegistry
in interface AbstractProjectHandle
public void setRegistryName(java.lang.String name)
AbstractProjectHandle
setRegistryName
in interface AbstractProjectHandle
name
- registry name