* @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
*/
public void modifyTestElement(TestElement s) {
this.configureTestElement(s);
if (s instanceof JmxSampler) {
JmxSampler sampler = (JmxSampler) s;
try {
GuiPackage.getInstance().getReplacer().replaceValues(sampler);
} catch (InvalidVariableException e) {
e.printStackTrace();
}
sampler.setSampleFrequency(panel.getSamplingFrequency());
sampler.setJmxUri(panel.getUrl());
sampler.setJmxMemType(panel.getUsedMemoryType());
}
}