}
/* Re-Sort if sorting by name is enabled */
if (dialog.open() == IDialogConstants.OK_ID) {
if (dialog.entitiesUpdated() && selectedEntities.size() == 1) { // Name can only be changed on single entity
IEntity entity = selectedEntities.get(0);
if (entity instanceof IFolderChild && ((IFolderChild) entity).getParent() != null) {
IFolder parent = ((IFolderChild) entity).getParent();
BookMarkExplorer explorer = OwlUI.getOpenedBookMarkExplorer();
if (explorer != null && explorer.isSortByNameEnabled())
((StructuredViewer) explorer.getViewSite().getSelectionProvider()).refresh(parent);