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