de.cau.cs.kieler.krep.evalbench.application.editors
Class PathEditorInput

java.lang.Object
  extended by de.cau.cs.kieler.krep.evalbench.application.editors.PathEditorInput
All Implemented Interfaces:
IAdaptable, IEditorInput, IPathEditorInput

public class PathEditorInput
extends Object
implements IPathEditorInput

EditorInput that stores a path.

Copied from org.eclipse.ui.examples.rcp.texteditor.editors.PathEditorInput

Rating red

Constructor Summary
PathEditorInput(IPath path)
          Creates an editor input based of the given file resource.
 
Method Summary
 boolean equals(Object obj)
           
 boolean exists()
           
 Object getAdapter(Class adapter)
           
 ImageDescriptor getImageDescriptor()
           
 String getName()
           
 IPath getPath()
           
 IPersistableElement getPersistable()
           
 String getToolTipText()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathEditorInput

public PathEditorInput(IPath path)
Creates an editor input based of the given file resource.

Parameters:
path - the file
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

exists

public boolean exists()
Specified by:
exists in interface IEditorInput

getImageDescriptor

public ImageDescriptor getImageDescriptor()
Specified by:
getImageDescriptor in interface IEditorInput

getName

public String getName()
Specified by:
getName in interface IEditorInput

getToolTipText

public String getToolTipText()
Specified by:
getToolTipText in interface IEditorInput

getPath

public IPath getPath()
Specified by:
getPath in interface IPathEditorInput

getAdapter

public Object getAdapter(Class adapter)
Specified by:
getAdapter in interface IAdaptable

getPersistable

public IPersistableElement getPersistable()
Specified by:
getPersistable in interface IEditorInput