org.formaria.editor.eclipse.project.viewer
Class AriaProjectEditor

java.lang.Object
  extended by MultiPageEditorPart
      extended by org.formaria.editor.eclipse.project.viewer.AriaProjectEditor

public class AriaProjectEditor
extends MultiPageEditorPart

An example showing how to create a multi-page editor. This example has 3 pages:


Constructor Summary
AriaProjectEditor()
          Creates a multi-page editor example.
 
Method Summary
protected  void createPages()
          Creates the pages of the multi-page editor.
 void dispose()
          The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors.
 void doSave(IProgressMonitor monitor)
          Saves the multi-page editor's document.
 void doSaveAs()
          Saves the multi-page editor's document as another file.
 void gotoMarker(IMarker marker)
           
 void init(IEditorSite site, IEditorInput editorInput)
          The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.
 boolean isDirty()
           
 boolean isSaveAsAllowed()
           
protected  void pageChange(int newPageIndex)
          Calculates the contents of page 2 when the it is activated.
 void resourceChanged(IResourceChangeEvent event)
          Closes all project files on project close.
 void saveState()
           
 void updateEditor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AriaProjectEditor

public AriaProjectEditor()
Creates a multi-page editor example.

Method Detail

createPages

protected void createPages()
Creates the pages of the multi-page editor.


dispose

public void dispose()
The MultiPageEditorPart implementation of this IWorkbenchPart method disposes all nested editors. Subclasses may extend.


updateEditor

public void updateEditor()

doSave

public void doSave(IProgressMonitor monitor)
Saves the multi-page editor's document.


doSaveAs

public void doSaveAs()
Saves the multi-page editor's document as another file. Also updates the text for page 0's tab, and updates this multi-page editor's input to correspond to the nested editor's.


gotoMarker

public void gotoMarker(IMarker marker)

init

public void init(IEditorSite site,
                 IEditorInput editorInput)
          throws PartInitException
The MultiPageEditorExample implementation of this method checks that the input is an instance of IFileEditorInput.

Throws:
PartInitException

isSaveAsAllowed

public boolean isSaveAsAllowed()

pageChange

protected void pageChange(int newPageIndex)
Calculates the contents of page 2 when the it is activated.


saveState

public void saveState()

isDirty

public boolean isDirty()

resourceChanged

public void resourceChanged(IResourceChangeEvent event)
Closes all project files on project close.