if (command.isValid()) {
command.setGraphics(g, pane);
try {
command.setMap(this.pane.getMapEditor().getMap());
command.run(new NullProgressMonitor());
} catch (Exception e) {
ProjectUIPlugin.log("", e); //$NON-NLS-1$
if(pre){
commands.removePre(command);
}else{