// The simpler approach is to do nothing, and let the user upload the
// file again if it still makes sense (the blip in which they intended it
// to go has been deleted, so they may not want to upload it anymore).
return;
}
EditorContext context = edit.getEditor();
CMutableDocument doc = context.getDocument();
FocusedContentRange selection = context.getSelectionHelper().getSelectionPoints();
Point<ContentNode> point;
if (selection != null) {
point = selection.getFocus();
} else {
// Focus was probably lost. Bring it back.
context.focus(false);
selection = context.getSelectionHelper().getSelectionPoints();
if (selection != null) {
point = selection.getFocus();
} else {
// Still no selection. Oh well, put it at the end.
point = doc.locate(doc.size() - 1);