org.eclipse.emf.common.ui
Class URIEditorInput
java.lang.Object
org.eclipse.emf.common.ui.URIEditorInput
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput
- public class URIEditorInput
- extends Object
- implements org.eclipse.ui.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 org.eclipse.ui.IEditorInput
- See Also:
IEditorInput.exists()
getName
public String getName()
- Returns the toString value of the associated URI.
- Specified by:
getName in interface org.eclipse.ui.IEditorInput
- See Also:
IEditorInput.getName()
getToolTipText
public String getToolTipText()
- Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor in interface org.eclipse.ui.IEditorInput
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistable in interface org.eclipse.ui.IEditorInput
getAdapter
public Object getAdapter(Class adapter)
- Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable