org.eclipse.gmt.umlx.editor.common
Class LazyFileEditorInput

java.lang.Object
  extended by org.eclipse.ui.part.FileEditorInput
      extended by org.eclipse.gmt.umlx.editor.common.LazyFileEditorInput
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput, org.eclipse.ui.IFileEditorInput, org.eclipse.ui.IPathEditorInput, org.eclipse.ui.IPersistable, org.eclipse.ui.IPersistableElement, org.eclipse.ui.IStorageEditorInput, org.eclipse.ui.IURIEditorInput

public final class LazyFileEditorInput
extends org.eclipse.ui.part.FileEditorInput

A LazyFileEditorInput maintains the temporary file that provides the textual input for a secondary page of a multi-page editor. The IFileEditorInput and IFile are created when the editor page is created, but populating the file content is deferred until the editor page is activated.


Constructor Summary
LazyFileEditorInput(org.eclipse.core.resources.IFile file)
           
LazyFileEditorInput(org.eclipse.core.resources.IFolder tmpdir, java.lang.String name, java.lang.String fileExtension)
           
 
Method Summary
 boolean hasContents()
           
 void setContents(java.io.InputStream inputStream, org.eclipse.core.runtime.IProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.ui.part.FileEditorInput
equals, exists, getAdapter, getFactoryId, getFile, getImageDescriptor, getName, getPath, getPersistable, getStorage, getToolTipText, getURI, hashCode, saveState, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LazyFileEditorInput

public LazyFileEditorInput(org.eclipse.core.resources.IFile file)

LazyFileEditorInput

public LazyFileEditorInput(org.eclipse.core.resources.IFolder tmpdir,
                           java.lang.String name,
                           java.lang.String fileExtension)
Method Detail

hasContents

public boolean hasContents()

setContents

public void setContents(java.io.InputStream inputStream,
                        org.eclipse.core.runtime.IProgressMonitor monitor)
                 throws org.eclipse.core.runtime.CoreException
Throws:
org.eclipse.core.runtime.CoreException