org.mockcentral.editor.nodes.fixture
Class EditFixtureActions

java.lang.Object
  extended by org.mockcentral.editor.nodes.actions.AbstractNodeEditingActions
      extended by org.mockcentral.editor.nodes.fixture.EditFixtureActions
All Implemented Interfaces:
IEditFixtureActions

public class EditFixtureActions
extends AbstractNodeEditingActions
implements IEditFixtureActions

A class used to create and run the editing actions for the EditFixturePage.

Author:
David Hutchinson

Field Summary
 
Fields inherited from class org.mockcentral.editor.nodes.actions.AbstractNodeEditingActions
operationHistory, undoContext
 
Constructor Summary
EditFixtureActions()
           
 
Method Summary
 void addFixtureImport(org.mockcentral.editor.nodes.fixture.FixtureNode importedFixtureNode)
          Executes an action to add a new FixtureNode import.
 void createSimpleBoundObjectsTableActions(org.eclipse.swt.widgets.Table table, TableViewerAdapter adapter)
          Creates the IAction instances for editing the list of simple (non-Mock) JNDI-bound Objects displayed in the Table on the page.
 void deleteSimpleBoundObject(org.mockcentral.editor.nodes.fixture.SimpleBoundObjectModel model)
          Deletes a simple (non-Mock) JNDI-bound object from the current fixture's list.
 void setNodeModel(org.mockcentral.editor.nodes.fixture.FixtureModel nodeModel)
          Sets the FixtureModel.
 void showAddSimpleBoundObjectWizard()
          Shows a wizard used to add a new simple (non-Mock) JNDI-bound Object.
 void showEditFixtureDataWizard()
          Shows a wizard used to edit the fixture name, description and imports list.
 void showEditSimpleBoundObjectWizard(org.mockcentral.editor.nodes.fixture.SimpleBoundObjectModel originalData)
          Shows a wizard used to edit a new simple (non-Mock) JNDI-bound Object.
 
Methods inherited from class org.mockcentral.editor.nodes.actions.AbstractNodeEditingActions
getOperationHistory, getUndoContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditFixtureActions

public EditFixtureActions()
Method Detail

setNodeModel

public void setNodeModel(org.mockcentral.editor.nodes.fixture.FixtureModel nodeModel)
Description copied from interface: IEditFixtureActions
Sets the FixtureModel.

Specified by:
setNodeModel in interface IEditFixtureActions
Parameters:
nodeModel - the FixtureModel to set.

addFixtureImport

public void addFixtureImport(org.mockcentral.editor.nodes.fixture.FixtureNode importedFixtureNode)
Description copied from interface: IEditFixtureActions
Executes an action to add a new FixtureNode import.

Specified by:
addFixtureImport in interface IEditFixtureActions
Parameters:
importedFixtureNode - the new FixtureNode import.

deleteSimpleBoundObject

public void deleteSimpleBoundObject(org.mockcentral.editor.nodes.fixture.SimpleBoundObjectModel model)
Description copied from interface: IEditFixtureActions
Deletes a simple (non-Mock) JNDI-bound object from the current fixture's list.

Specified by:
deleteSimpleBoundObject in interface IEditFixtureActions
Parameters:
model - the SimpleBoundObjectModel for the object.

showEditFixtureDataWizard

public void showEditFixtureDataWizard()
Description copied from interface: IEditFixtureActions
Shows a wizard used to edit the fixture name, description and imports list.

Specified by:
showEditFixtureDataWizard in interface IEditFixtureActions

showAddSimpleBoundObjectWizard

public void showAddSimpleBoundObjectWizard()
Description copied from interface: IEditFixtureActions
Shows a wizard used to add a new simple (non-Mock) JNDI-bound Object.

Specified by:
showAddSimpleBoundObjectWizard in interface IEditFixtureActions

showEditSimpleBoundObjectWizard

public void showEditSimpleBoundObjectWizard(org.mockcentral.editor.nodes.fixture.SimpleBoundObjectModel originalData)
Description copied from interface: IEditFixtureActions
Shows a wizard used to edit a new simple (non-Mock) JNDI-bound Object.

Specified by:
showEditSimpleBoundObjectWizard in interface IEditFixtureActions
Parameters:
originalData - the SimpleBoundObjectModel containing the original data.

createSimpleBoundObjectsTableActions

public void createSimpleBoundObjectsTableActions(org.eclipse.swt.widgets.Table table,
                                                 TableViewerAdapter adapter)
Description copied from interface: IEditFixtureActions
Creates the IAction instances for editing the list of simple (non-Mock) JNDI-bound Objects displayed in the Table on the page.

Specified by:
createSimpleBoundObjectsTableActions in interface IEditFixtureActions
Parameters:
table - the Table.
adapter - TableViewerAdapter for the Table .