LocomotiveControlface locomotiveControl = AdHocRailway
.getInstance().getLocomotiveControl();
if (e.getClickCount() == 1 && e.getButton() == MouseEvent.BUTTON3) {
LocomotivePersistenceIface locomotivePersistence = AdHocRailway
.getInstance().getLocomotivePersistence();
LocomotiveConfig locomotiveConfig = new LocomotiveConfig(frame,
myLocomotive);
if (locomotiveConfig.isOkPressed()) {
locomotivePersistence.updateLocomotive(myLocomotive);
}
locomotiveChanged(myLocomotive);
locomotiveControl.update();
} else if (e.getButton() == MouseEvent.BUTTON2) {