org.eclipse.cdt.internal.ui.util
Class ExternalEditorInput

java.lang.Object
  extended by org.eclipse.cdt.internal.ui.util.ExternalEditorInput
All Implemented Interfaces:
ITranslationUnitEditorInput, org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.editors.text.ILocationProvider, org.eclipse.ui.IEditorInput, org.eclipse.ui.IPersistable, org.eclipse.ui.IPersistableElement, org.eclipse.ui.IStorageEditorInput

public class ExternalEditorInput
extends java.lang.Object
implements ITranslationUnitEditorInput, org.eclipse.ui.IPersistableElement

An EditorInput for an external (non-workspace) file.


Constructor Summary
ExternalEditorInput(org.eclipse.core.resources.IStorage exFile)
           
ExternalEditorInput(org.eclipse.core.resources.IStorage exFile, org.eclipse.core.runtime.IPath location)
           
ExternalEditorInput(org.eclipse.core.resources.IStorage exFile, org.eclipse.core.resources.IResource markerResource)
          This constructor accepts the storage for the editor and a reference to a resource which holds the markers for the external file.
ExternalEditorInput(org.eclipse.cdt.core.model.ITranslationUnit unit, org.eclipse.core.resources.IStorage exFile)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean exists()
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 java.lang.String getFactoryId()
           
 org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
           
 org.eclipse.core.resources.IResource getMarkerResource()
          Return the resource where markers for this external editor input are stored
 java.lang.String getName()
           
 org.eclipse.core.runtime.IPath getPath(java.lang.Object element)
           
 org.eclipse.ui.IPersistableElement getPersistable()
           
 org.eclipse.core.resources.IStorage getStorage()
           
 java.lang.String getToolTipText()
           
 org.eclipse.cdt.core.model.ITranslationUnit getTranslationUnit()
           
 void saveState(org.eclipse.ui.IMemento memento)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalEditorInput

public ExternalEditorInput(org.eclipse.cdt.core.model.ITranslationUnit unit,
                           org.eclipse.core.resources.IStorage exFile)

ExternalEditorInput

public ExternalEditorInput(org.eclipse.core.resources.IStorage exFile)

ExternalEditorInput

public ExternalEditorInput(org.eclipse.core.resources.IStorage exFile,
                           org.eclipse.core.runtime.IPath location)

ExternalEditorInput

public ExternalEditorInput(org.eclipse.core.resources.IStorage exFile,
                           org.eclipse.core.resources.IResource markerResource)
This constructor accepts the storage for the editor and a reference to a resource which holds the markers for the external file.

Method Detail

equals

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

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

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

getTranslationUnit

public org.eclipse.cdt.core.model.ITranslationUnit getTranslationUnit()
Specified by:
getTranslationUnit in interface ITranslationUnitEditorInput

getPath

public org.eclipse.core.runtime.IPath getPath(java.lang.Object element)
Specified by:
getPath in interface org.eclipse.ui.editors.text.ILocationProvider

getMarkerResource

public org.eclipse.core.resources.IResource getMarkerResource()
Return the resource where markers for this external editor input are stored


getFactoryId

public java.lang.String getFactoryId()
Specified by:
getFactoryId in interface org.eclipse.ui.IPersistableElement

saveState

public void saveState(org.eclipse.ui.IMemento memento)
Specified by:
saveState in interface org.eclipse.ui.IPersistable