org.eclipse.emf.common.ui
Class URIEditorInput

java.lang.Object
  extended byorg.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.


Constructor Summary
URIEditorInput(URI uri)
           
 
Method Summary
 boolean exists()
          Returns true only if the URI represents a file and if this file exists.
 Object getAdapter(Class adapter)
           
 ImageDescriptor getImageDescriptor()
           
 String getName()
          Returns the toString value of the associated URI.
 IPersistableElement getPersistable()
           
 String getToolTipText()
           
 URI getURI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIEditorInput

public URIEditorInput(URI uri)
Method Detail

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

Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.