for (Entry<IFolder, IFolder> entry : entries) {
IFolder reparentedFolder = entry.getKey();
IFolder oldParent = entry.getValue();
/* Reparent while keeping the Selection / Expansion */
ISelection selection = fViewer.getSelection();
boolean expand = expandedElements.contains(reparentedFolder);
fViewer.remove(oldParent, new Object[] { reparentedFolder });
fViewer.refresh(reparentedFolder.getParent(), false);
fViewer.setSelection(selection);