private void addNewTargetWizard(ModbusMasterTask parent)
{
// create dialog for target selection
AddSlaveDialog asd = new AddSlaveDialog("Target slave(s)");
asd.setVisible(true);
if( asd.isAdded() == false )
{
return;
}
// obtain data from the form
ModbusSlaveAddress[] targets = asd.getTargetList();
String targetsAsString = asd.getTargetListAsText();
String targetName = asd.getTargetName();
// create new target node in the tree
ModbusMasterTarget mmt = new ModbusMasterTarget();
mmt.setTargetName(targetName);
mmt.setTargetList(targets);