AddVertexCommand addVertexCommand = new AddVertexCommand(handler, editBlackboard, clickPoint);
try {
addVertexCommand.setMap(handler.getContext().getMap());
addVertexCommand.run(new NullProgressMonitor());
} catch (Exception e1) {
throw (RuntimeException) new RuntimeException( ).initCause( e1 );
}
commands.add(new UndoRedoCommand(addVertexCommand));
}