if( handler.getCurrentState()==EditState.CREATING)
commands.add(new SetEditStateCommand(handler, EditState.MODIFYING));
UndoableComposite undoableComposite = new UndoableComposite(commands);
undoableComposite.setMap(handler.getContext().getMap());
try {
undoableComposite.run(new NullProgressMonitor());
} catch (Exception e1) {
throw new RuntimeException(e1);
}
return new UndoRedoCommand(undoableComposite);
}