return new AbstractAction(Lang.getNoHTML("menu.undo"), Icons.get("undo")) {
@Override
public void actionPerformed(ActionEvent e) {
CommandHistory history = Controller.getCurrentMap().getHistory();
try {
history.undo();
} catch (Exception ex) {
Logger.error("An error occured during the last 'undo'", ex);
}
}
};