@Override
public void configure(TestElement el) {
super.configure(el);
if (!(el instanceof JMSSampler)) return;
JMSSampler sampler = (JMSSampler) el;
queueConnectionFactory.setText(sampler.getQueueConnectionFactory());
sendQueue.setText(sampler.getSendQueue());
receiveQueue.setText(sampler.getReceiveQueue());
JComboBox box = (JComboBox) oneWay.getComponentList().get(1);
String selected = null;
if (sampler.isOneway()) {
selected = JMeterUtils.getResString("jms_request"); //$NON-NLS-1$
} else {
selected = JMeterUtils.getResString("jms_requestreply"); //$NON-NLS-1$
}
box.setSelectedItem(selected);
useNonPersistentDelivery.setSelected(sampler.isNonPersistent());
useReqMsgIdAsCorrelId.setSelected(sampler.isUseReqMsgIdAsCorrelId());
useResMsgIdAsCorrelId.setSelected(sampler.isUseResMsgIdAsCorrelId());
timeout.setText(sampler.getTimeout());
jmsSelector.setText(sampler.getJMSSelector());
messageContent.setInitialText(sampler.getContent());
initialContextFactory.setText(sampler.getInitialContextFactory());
providerUrl.setText(sampler.getContextProvider());
jmsPropertiesPanel.configure(sampler.getJMSProperties());
// (TestElement)
// el.getProperty(JMSSampler.JMS_PROPERTIES).getObjectValue());
jndiPropertiesPanel.configure(sampler.getJNDIProperties());
// (TestElement)
// el.getProperty(JMSSampler.JNDI_PROPERTIES).getObjectValue());
}