/* Pages are present */
if (!pages.isEmpty()) {
/* Create & Open the Property-Dialog */
EntityPropertyDialog dialog = new EntityPropertyDialog(fShellProvider.getShell(), selectedEntities);
dialog.setTitle(getTitle(selectedEntities));
/* Add contributed pages */
for (EntityPropertyPageWrapper page : pages) {
page.createPage();
dialog.addPage(page);
}
/* 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())