pl.edu.agh.cast.backward.resources
Class FileEditorInput

java.lang.Object
  extended by pl.edu.agh.cast.backward.resources.FileEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPathEditorInput
Direct Known Subclasses:
DiagramEditorInput, ModelEditorInput

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

IEditorInput from IFile.

Author:
AGH CAST Team

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

Constructor Detail

FileEditorInput

public FileEditorInput(org.eclipse.core.resources.IFile file)
Creates new file editor input.

Parameters:
file - file to use as input data source
Method Detail

getPath

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

getFile

public org.eclipse.core.resources.IFile getFile()

exists

public boolean exists()

Specified by:
exists in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.exists()

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

getPersistable

public org.eclipse.ui.IPersistableElement getPersistable()
Specified by:
getPersistable in interface org.eclipse.ui.IEditorInput

getToolTipText

public String getToolTipText()

Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput
See Also:
IEditorInput.getToolTipText()

getAdapter

public Object getAdapter(Class adapter)

Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
See Also:
IAdaptable.getAdapter(java.lang.Class)

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.