/**
* @see Command#doAction(ActionEvent)
*/
public void doAction(ActionEvent e)
{
JMeterTreeNode draggedNodes[] = Copy.getCopiedNodes();
JMeterTreeListener treeListener =
GuiPackage.getInstance().getTreeListener();
JMeterTreeNode currentNode = treeListener.getCurrentNode();
if (DragNDrop.canAddTo(currentNode))
{
for(int i=0;i<draggedNodes.length;i++) {
if (draggedNodes[i] != null)
{
GuiPackage.getInstance().getTreeModel().insertNodeInto(
draggedNodes[i],
currentNode,
currentNode.getChildCount());
}
}
}
GuiPackage.getInstance().getMainFrame().repaint();
}