}
final IActor actor = new IActor() {
public void act() {
model.setBackgroundColor(actionColor);
Controller.getCurrentModeController().getMapController().fireMapChanged(
new MapChangeEvent(MapStyle.this, Controller.getCurrentController().getMap(), MapStyle.RESOURCES_BACKGROUND_COLOR,
oldColor, actionColor));
}
public String getDescription() {
return "MapStyle.setBackgroundColor";
}
public void undo() {
model.setBackgroundColor(oldColor);
Controller.getCurrentModeController().getMapController().fireMapChanged(
new MapChangeEvent(MapStyle.this, Controller.getCurrentController().getMap(), MapStyle.RESOURCES_BACKGROUND_COLOR,
actionColor, oldColor));
}
};
Controller.getCurrentModeController().execute(actor, Controller.getCurrentController().getMap());
}