public Set<String> getActionNames() {
return commands;
}
private void changeParent(TestElement newParent, GuiPackage guiPackage, JMeterTreeNode currentNode) {
JMeterTreeModel treeModel = guiPackage.getTreeModel();
JMeterTreeNode newNode = new JMeterTreeNode(newParent, treeModel);
JMeterTreeNode parentNode = (JMeterTreeNode) currentNode.getParent();
int index = parentNode.getIndex(currentNode);
treeModel.insertNodeInto(newNode, parentNode, index);
treeModel.removeNodeFromParent(currentNode);
Enumeration<JMeterTreeNode> nodes = currentNode.children();
while(nodes.hasMoreElements()) {
JMeterTreeNode node = nodes.nextElement();
treeModel.removeNodeFromParent(node);
treeModel.insertNodeInto(node, newNode, newNode.getChildCount());
}
}