PlatformGIS.run(new IRunnableWithProgress(){
public void run(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
try {
MapCommand command = context.getEditFactory().createCommitCommand();
command.setMap(getContext().getMap());
command.run(monitor);
} catch (Exception e) {
ToolsPlugin.log("Exception thrown while committing", e); //$NON-NLS-1$
Display display = Display.getDefault();
display.asyncExec(new Runnable() {
public void run() {