int index = comboActionType.getSelectedIndex();
if (index == 0) {
buttonGoTo.setEnabled(false);
}
Action action = Action.getAction(index);
if (action != null) {
comboSensor.setEnabled(action.isSensorRequired());
comboActuator.setEnabled(action.isActuatorRequired());
}
}
}