org.eclipse.gmt.umlx.registry.eclipse
Class EclipseProjectHandle

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.gmt.umlx.registry.eclipse.EclipseFileHandle
          extended by org.eclipse.gmt.umlx.registry.eclipse.EclipseProjectHandle
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, AbstractFileHandle, AbstractProjectHandle

public class EclipseProjectHandle
extends EclipseFileHandle
implements AbstractProjectHandle


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

EclipseProjectHandle

public EclipseProjectHandle(org.eclipse.core.resources.IProject project)
Method Detail

getFileHandle

public EclipseFileHandle getFileHandle(java.lang.String name)
Description copied from interface: AbstractProjectHandle
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.

Specified by:
getFileHandle in interface AbstractProjectHandle
Returns:
the Handle

getFileHandle

public EclipseFileHandle getFileHandle(org.eclipse.core.resources.IResource resource)

getProjectResource

public org.eclipse.core.resources.IProject getProjectResource()

getRegistryResource

public org.eclipse.core.resources.IFile getRegistryResource()

getRegistryURI

public org.eclipse.emf.common.util.URI getRegistryURI()
Description copied from interface: AbstractProjectHandle
Get the URI of the registry model.

Specified by:
getRegistryURI in interface AbstractProjectHandle
Returns:
the registry URI

getRegistryName

public java.lang.String getRegistryName()
Description copied from interface: AbstractProjectHandle
Get the name of the registry model with respect to the project. The default value is DEFAULT_MODEL_REGISTRY_NAME.

Specified by:
getRegistryName in interface AbstractProjectHandle
Returns:
registry name

getURI

public org.eclipse.emf.common.util.URI getURI()
Description copied from interface: AbstractFileHandle
Get the URI of the file.

Specified by:
getURI in interface AbstractFileHandle
Overrides:
getURI in class EclipseFileHandle
Returns:
the file URI

refreshRegistry

public void refreshRegistry()
Description copied from interface: AbstractProjectHandle
Respond to a notification that the registry has changed.

Specified by:
refreshRegistry in interface AbstractProjectHandle

setRegistryName

public void setRegistryName(java.lang.String name)
Description copied from interface: AbstractProjectHandle
Define the name of the registry model with respect to the project.

Specified by:
setRegistryName in interface AbstractProjectHandle
Parameters:
name - registry name