org.mockcentral.editor.components
Class EditorFormPage

java.lang.Object
  extended by org.eclipse.ui.part.WorkbenchPart
      extended by org.eclipse.ui.part.EditorPart
          extended by org.eclipse.ui.forms.editor.FormPage
              extended by org.mockcentral.editor.components.EditorFormPage
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.ui.forms.editor.IFormPage, org.eclipse.ui.IEditorPart, org.eclipse.ui.ISaveablePart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.part.IWorkbenchPartOrientation

public class EditorFormPage
extends org.eclipse.ui.forms.editor.FormPage

A FormPage containing a ScrolledPageBook to show the MockCentralPluginNodeView instances associated with the various MockCentralNode classes. There is one book page per node type (lazily created) which is updated with fresh node instance data and displayed in the book when the loadNodeEditorPage method is invoked.

Author:
David Hutchinson

Field Summary
protected  org.eclipse.ui.forms.widgets.ScrolledForm form
           
protected  org.eclipse.ui.forms.widgets.FormToolkit toolkit
           
 
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUT
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
EditorFormPage(org.eclipse.ui.forms.editor.FormEditor editor)
          Creates a new instance.
 
Method Summary
protected  void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
           
 void dispose()
           
 MockCentralPluginNodeView getNodeEditorPage(org.mockcentral.editor.nodes.MockCentralNodeType nodeType)
          Returns the MockCentralPluginNodeView associated with the supplied MockCentralNodeType.
 void loadNodeEditorPage(org.mockcentral.editor.nodes.MockCentralNode node)
          Directs the ScrolledPageBook to show the MockCentralPluginNodeView for the supplied MockCentralNode.
 
Methods inherited from class org.eclipse.ui.forms.editor.FormPage
canLeaveThePage, createPartControl, doSave, doSaveAs, getEditor, getId, getIndex, getManagedForm, getPartControl, getTitleImage, init, initialize, isActive, isDirty, isEditor, isSaveAsAllowed, selectReveal, setActive, setFocus, setIndex
 
Methods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInput, setPartName
 
Methods inherited from class org.eclipse.ui.part.WorkbenchPart
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getSite, getTitle, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, getEditorSite
 
Methods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 
Methods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeeded
 

Field Detail

toolkit

protected org.eclipse.ui.forms.widgets.FormToolkit toolkit

form

protected org.eclipse.ui.forms.widgets.ScrolledForm form
Constructor Detail

EditorFormPage

public EditorFormPage(org.eclipse.ui.forms.editor.FormEditor editor)
Creates a new instance.

Parameters:
editor - the parent MockCentralPluginEditor.
Method Detail

getNodeEditorPage

public MockCentralPluginNodeView getNodeEditorPage(org.mockcentral.editor.nodes.MockCentralNodeType nodeType)
Returns the MockCentralPluginNodeView associated with the supplied MockCentralNodeType.

Parameters:
nodeType - MockCentralNodeType.
Returns:
the MockCentralPluginNodeView associated with the supplied MockCentralNodeType.

loadNodeEditorPage

public void loadNodeEditorPage(org.mockcentral.editor.nodes.MockCentralNode node)
Directs the ScrolledPageBook to show the MockCentralPluginNodeView for the supplied MockCentralNode.

Parameters:
node - the MockCentralNode.

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.ui.IWorkbenchPart
Overrides:
dispose in class org.eclipse.ui.forms.editor.FormPage

createFormContent

protected void createFormContent(org.eclipse.ui.forms.IManagedForm managedForm)
Overrides:
createFormContent in class org.eclipse.ui.forms.editor.FormPage