Search in sources :

Example 81 with JMeterTreeNode

use of org.apache.jmeter.gui.tree.JMeterTreeNode in project jmeter by apache.

the class UndoHistory method treeNodesChanged.

/**
 * Record the changes in the node as the undo step
 *
 * @param tme {@link TreeModelEvent} with event details
 */
@Override
public void treeNodesChanged(TreeModelEvent tme) {
    String name = ((JMeterTreeNode) tme.getTreePath().getLastPathComponent()).getName();
    log.debug("Nodes changed {}", name);
    final JMeterTreeModel sender = (JMeterTreeModel) tme.getSource();
    add(sender, "Node changed " + name);
}
Also used : JMeterTreeModel(org.apache.jmeter.gui.tree.JMeterTreeModel) JMeterTreeNode(org.apache.jmeter.gui.tree.JMeterTreeNode)

Aggregations

JMeterTreeNode (org.apache.jmeter.gui.tree.JMeterTreeNode)81 GuiPackage (org.apache.jmeter.gui.GuiPackage)26 JMeterTreeModel (org.apache.jmeter.gui.tree.JMeterTreeModel)21 TestElement (org.apache.jmeter.testelement.TestElement)18 IllegalUserActionException (org.apache.jmeter.exceptions.IllegalUserActionException)13 TreePath (javax.swing.tree.TreePath)10 HashTree (org.apache.jorphan.collections.HashTree)10 Controller (org.apache.jmeter.control.Controller)9 TestPlan (org.apache.jmeter.testelement.TestPlan)9 IOException (java.io.IOException)8 ActionEvent (java.awt.event.ActionEvent)7 DefaultMutableTreeNode (javax.swing.tree.DefaultMutableTreeNode)7 ConfigTestElement (org.apache.jmeter.config.ConfigTestElement)7 ArrayList (java.util.ArrayList)6 JMeterTreeListener (org.apache.jmeter.gui.tree.JMeterTreeListener)6 NonTestElement (org.apache.jmeter.testelement.NonTestElement)6 TreeNode (javax.swing.tree.TreeNode)5 JMeterGUIComponent (org.apache.jmeter.gui.JMeterGUIComponent)5 ListedHashTree (org.apache.jorphan.collections.ListedHashTree)5 JTree (javax.swing.JTree)4