}
else
{
// display the bind dialog
BindingEditor dialog = new BindingEditor(slaveDialog.modbusPalPane);
slaveDialog.setStatus("Binding...");
dialog.setVisible(true);
// retrieve the selected automation
Automation source = dialog.getSelectedAutomation();
if( source == null )
{
slaveDialog.setStatus("Binding cancelled by user.");
return;
}
// get the selected binding order
int selectedOrder = dialog.getSelectedOrder();
// get the selected binding class
String selectedClass = dialog.getSelectedClass();
// get the selected rows
int selectedAddresses[] = ((ModbusRegistersTable)registersTable).getSelectedAddresses();
// bind all selected registers