use of org.apache.jmeter.control.GenericController in project jmeter by apache.
the class GenerateTreeGui method addSimpleController.
/**
* Helper method to add a Simple Controller to contain the elements.
* Called from Application Thread that needs to update GUI (JMeterTreeModel)
* @param model
* Test component tree model
* @param node
* Node in the tree where we will add the Controller
* @param name
* A name for the Controller
* @return the new node
*/
private JMeterTreeNode addSimpleController(JMeterTreeModel model, JMeterTreeNode node, String name) {
final TestElement sc = new GenericController();
sc.setProperty(TestElement.GUI_CLASS, LOGIC_CONTROLLER_GUI);
// Use old style
sc.setProperty(TestElement.NAME, name);
return addToTree(model, node, sc);
}
use of org.apache.jmeter.control.GenericController in project jmeter by apache.
the class LogicControllerGui method createTestElement.
/* Implements JMeterGUIComponent.createTestElement() */
@Override
public TestElement createTestElement() {
GenericController lc = new GenericController();
configureTestElement(lc);
return lc;
}
Aggregations