* @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
*/
@Override
public void modifyTestElement(TestElement c) {
if (c instanceof CounterConfig) {
CounterConfig config = (CounterConfig) c;
config.setStart(startField.getText());
// Bug 22820 if (endField.getText().length() > 0)
{
config.setEnd(endField.getText());
}
config.setIncrement(incrField.getText());
config.setVarName(varNameField.getText());
config.setFormat(formatField.getText());
config.setIsPerUser(perUserField.isSelected());
config.setResetOnThreadGroupIteration(resetCounterOnEachThreadGroupIteration.isEnabled()
&& resetCounterOnEachThreadGroupIteration.isSelected());
}
super.configureTestElement(c);
}