// shouldn't happen.
}
final CompositeCommand compComm = new CompositeCommand();
//Sets the feature (with the edited values) used in the view as the editFeature
compComm.getCommands().add(new SetEditFeatureCommand(editedFeature));
//Write the changes to the actual dataset
compComm.getCommands().add(new WriteEditFeatureCommand());
context.sendASyncCommand(compComm);
setEnabled(false);