org.eparapher.rcp.editors
Class FileEditorInput

java.lang.Object
  extended by org.eparapher.rcp.editors.FileEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPathEditorInput

public class FileEditorInput
extends Object
implements org.eclipse.ui.IPathEditorInput


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

Constructor Detail

FileEditorInput

public FileEditorInput(org.eclipse.core.runtime.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 org.eclipse.ui.IEditorInput

getImageDescriptor

public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
Specified by:
getImageDescriptor in interface org.eclipse.ui.IEditorInput

getName

public String getName()
Specified by:
getName in interface org.eclipse.ui.IEditorInput

getToolTipText

public String getToolTipText()
Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput

getPath

public org.eclipse.core.runtime.IPath getPath()
Specified by:
getPath in interface org.eclipse.ui.IPathEditorInput

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


Copyright © 2009 eParapher Software Foundation. All Rights Reserved.