org.eclipse.emf.common.ui
Class URIEditorInput
java.lang.Object
org.eclipse.emf.common.ui.URIEditorInput
- All Implemented Interfaces:
- IAdaptable, IEditorInput
- public class URIEditorInput
- extends Object
- implements IEditorInput
Very simple implementation of an IEditorInput
to wrap
one URI
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIEditorInput
public URIEditorInput(URI uri)
getURI
public URI getURI()
- Returns:
- the uri
exists
public boolean exists()
- Returns true only if the URI represents a file and if
this file exists.
- Specified by:
exists
in interface IEditorInput
- See Also:
IEditorInput.exists()
getName
public String getName()
- Returns the toString value of the associated URI.
- Specified by:
getName
in interface IEditorInput
- See Also:
IEditorInput.getName()
getToolTipText
public String getToolTipText()
- Specified by:
getToolTipText
in interface IEditorInput
getImageDescriptor
public ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interface IEditorInput
getPersistable
public IPersistableElement getPersistable()
- Specified by:
getPersistable
in interface IEditorInput
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter
in interface IAdaptable