org.mockcentral.editor.nodes.mockobject
Class EditMockObjectPage

java.lang.Object
  extended by org.mockcentral.editor.components.MockCentralPluginNodeView
      extended by org.mockcentral.editor.nodes.mockobject.EditMockObjectPage
All Implemented Interfaces:
org.mockcentral.editor.nodes.IMockCentralNodeView, org.mockcentral.editor.nodes.mockobject.IMockObjectModelObserver

public class EditMockObjectPage
extends MockCentralPluginNodeView
implements org.mockcentral.editor.nodes.mockobject.IMockObjectModelObserver

The MockCentralPluginNodeView used for editing Mock Object data.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.components.MockCentralPluginNodeView
imagesMap, page, toolkit
 
Constructor Summary
EditMockObjectPage(org.eclipse.ui.forms.widgets.FormToolkit toolkit, org.eclipse.swt.widgets.Composite page)
          Creates a new instance.
 
Method Summary
protected  EditMockObjectDecorationManager getDecorationManager()
          Returns the EditMockObjectDecorationManager used to manage the ControlDecoration indicating problems with the Mock Object interface name.
 java.lang.String getInputDescription()
           
protected  org.eclipse.jface.fieldassist.ControlDecoration getMockObjectInterfaceDecoration()
          Returns the ControlDecoration used to indicate problems with the interface name.
 void jndiNameChanged()
           
 void mockObjectInterfaceChanged()
           
 void mockObjectNameChanged()
           
 void setNodeModel(org.mockcentral.editor.nodes.MockCentralNodeModel mockObjectModel)
           
 
Methods inherited from class org.mockcentral.editor.components.MockCentralPluginNodeView
createButton, createLabel, dispose, getImagesMap, getOperationHistory, getUndoContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditMockObjectPage

public EditMockObjectPage(org.eclipse.ui.forms.widgets.FormToolkit toolkit,
                          org.eclipse.swt.widgets.Composite page)
Creates a new instance.

Parameters:
toolkit - the FormToolkit provided by the parent EditorFormPage.
page - the Composite created within the parent EditorFormPage which will hold the view page contents.
Method Detail

getInputDescription

public java.lang.String getInputDescription()
Specified by:
getInputDescription in interface org.mockcentral.editor.nodes.IMockCentralNodeView

setNodeModel

public void setNodeModel(org.mockcentral.editor.nodes.MockCentralNodeModel mockObjectModel)
Specified by:
setNodeModel in interface org.mockcentral.editor.nodes.IMockCentralNodeView

mockObjectNameChanged

public void mockObjectNameChanged()
Specified by:
mockObjectNameChanged in interface org.mockcentral.editor.nodes.mockobject.IMockObjectModelObserver

mockObjectInterfaceChanged

public void mockObjectInterfaceChanged()
Specified by:
mockObjectInterfaceChanged in interface org.mockcentral.editor.nodes.mockobject.IMockObjectModelObserver

jndiNameChanged

public void jndiNameChanged()
Specified by:
jndiNameChanged in interface org.mockcentral.editor.nodes.mockobject.IMockObjectModelObserver

getMockObjectInterfaceDecoration

protected org.eclipse.jface.fieldassist.ControlDecoration getMockObjectInterfaceDecoration()
Returns the ControlDecoration used to indicate problems with the interface name.

Returns:
the ControlDecoration used to indicate problems with the interface name.

getDecorationManager

protected EditMockObjectDecorationManager getDecorationManager()
Returns the EditMockObjectDecorationManager used to manage the ControlDecoration indicating problems with the Mock Object interface name.

Returns:
the EditMockObjectDecorationManager.