org.mockcentral.editor.nodes.actions
Class PasteNodeAction

java.lang.Object
  extended by org.eclipse.jface.action.Action
      extended by org.mockcentral.editor.nodes.actions.MockCentralPluginAction
          extended by org.mockcentral.editor.nodes.actions.PasteNodeAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction

public class PasteNodeAction
extends MockCentralPluginAction

An Action class for pasting a copied MockCentralNode into an enclosing group.

Author:
David Hutchinson

Field Summary
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
PasteNodeAction(org.mockcentral.editor.viewers.IMockCentralNodeGroupViewer viewer)
          Creates a new instance.
 
Method Summary
 void run()
           
 void setNodeCopier(INodeCopier nodeCopier)
          Sets the INodeCopier implementation.
 
Methods inherited from class org.mockcentral.editor.nodes.actions.MockCentralPluginAction
getOperationHistory, getUndoContext
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasteNodeAction

public PasteNodeAction(org.mockcentral.editor.viewers.IMockCentralNodeGroupViewer viewer)
Creates a new instance.

Parameters:
viewer - the current IMockCentralNodeGroupViewer instance from which the action originated.
Method Detail

setNodeCopier

public void setNodeCopier(INodeCopier nodeCopier)
Sets the INodeCopier implementation.

Parameters:
nodeCopier - the INodeCopier implementation to set.

run

public void run()
Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action