de.matthias_burbach.mosaique4eclipse.util
Class ExternalEditorInput

java.lang.Object
  extended byde.matthias_burbach.mosaique4eclipse.util.ExternalEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPathEditorInput, org.eclipse.ui.IStorageEditorInput

public class ExternalEditorInput
extends java.lang.Object
implements org.eclipse.ui.IStorageEditorInput, org.eclipse.ui.IPathEditorInput

Is an EditorInput for an external file.


Constructor Summary
ExternalEditorInput(org.eclipse.core.resources.IStorage externalFile)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           Two ExternalEditorInputs are equal if their IStorage's are equal.
 boolean exists()
          
 java.lang.Object getAdapter(java.lang.Class adapter)
          
 java.lang.String getContentType()
           
 java.lang.String getFullPath()
           
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
          
 java.lang.String getName()
          
 org.eclipse.core.runtime.IPath getPath()
          
 org.eclipse.ui.IPersistableElement getPersistable()
          
 org.eclipse.core.resources.IStorage getStorage()
          
 java.lang.String getToolTipText()
          
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalEditorInput

public ExternalEditorInput(org.eclipse.core.resources.IStorage externalFile)
Parameters:
externalFile - The external file which is input to the editor. Must not be null.
Method Detail

exists

public boolean exists()

Specified by:
exists 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

getContentType

public java.lang.String getContentType()
Returns:
The file extension of the external file.

getFullPath

public java.lang.String getFullPath()
Returns:
The OS specific representation of the external file's full path.

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

getStorage

public org.eclipse.core.resources.IStorage getStorage()

Specified by:
getStorage in interface org.eclipse.ui.IStorageEditorInput

getToolTipText

public java.lang.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

equals

public boolean equals(java.lang.Object obj)
Two ExternalEditorInputs are equal if their IStorage's are equal.


hashCode

public int hashCode()



Copyright © 2005-2006 . All Rights Reserved.