// Case when the list of actuator equal 1 and the type of scan is SCAN ENERGY
// Can not add other row in the list of actuators
boolean stopAdd = ((config.getType().equals(ScanType.SCAN_ENERGY) || (config.getType()
.equals(ScanType.SCAN_K))) && listActuator.size() == 1) ? true : false;
if (!stopAdd) {
IActuator actuator = new ActuatorModel();
actuator.setName(defaultActuatorName);
if (value != null) {
actuator.setName(value);
}
actuator.setEnabled(true);
boolean addSucces = this.actuatorsListView.addRow(actuator);
if (addSucces)
this.listActuator.add(actuator);
}