myLocomotive);
if (locomotiveConfig.isOkPressed()) {
locomotivePersistence.updateLocomotive(myLocomotive);
}
locomotiveChanged(myLocomotive);
locomotiveControl.update();
} else if (e.getButton() == MouseEvent.BUTTON2) {
ToggleDirectionAction a = new ToggleDirectionAction();
a.actionPerformed(null);
}
updateWidget();