org.topbraidcomposer.editors
Class ExternalFileEditorInput

java.lang.Object
  extended by org.topbraidcomposer.editors.ExternalFileEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput

public class ExternalFileEditorInput
extends java.lang.Object
implements org.eclipse.ui.IEditorInput

An IEditorInput that is used if an external file (outside of the workspace) has been opened. Instances of this class are created by the ResourceEditorLauncher.

Author:
Holger Knublauch

Constructor Summary
ExternalFileEditorInput(java.io.File file, java.net.URI baseURI)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 boolean exists()
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.net.URI getBaseURI()
           
 java.io.File getFile()
           
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
           
 java.lang.String getName()
           
 org.eclipse.ui.IPersistableElement getPersistable()
           
 java.lang.String getToolTipText()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalFileEditorInput

public ExternalFileEditorInput(java.io.File file,
                               java.net.URI baseURI)
Method Detail

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

exists

public boolean exists()
Specified by:
exists in interface org.eclipse.ui.IEditorInput

getBaseURI

public java.net.URI getBaseURI()

getFile

public java.io.File getFile()

getImageDescriptor

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

getName

public java.lang.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 java.lang.String getToolTipText()
Specified by:
getToolTipText in interface org.eclipse.ui.IEditorInput

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object