Bug 139385 [Viewers] Viewer#setComparator(ViewerComparator) has no effect
Version: 3.2.0 Build id: I20060428-1315 Setting a Comparator in setComparator is actually not triggering any sorting in my viewer. It works when I call setComparator(ViewerSorter). Any ideas? Ben
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
Widget childItem = childItems[j];
				if (childItem instanceof Item) {
					Item parentItem = getParentItem((Item) childItem);
					if (parentItem != null) {
						parentItems.put(parentItem, parentItem);
					}
					disassociate((Item) childItem);
					childItem.dispose();
				}
			}            
        }
        internalReconcileParentItems(parentItems);
    }
	/**
	 * @param parentItems
	 */
	private void internalReconcileParentItems(CustomHashtable parentItems) {
		Control tree = getControl();
        for (Enumeration e = parentItems.keys(); e.hasMoreElements();) {
            Item parentItem = (Item) e.nextElement();
            if(parentItem.isDisposed()) {
				continue;
			}
            if (!getExpanded(parentItem) && getItemCount(parentItem) == 0) {
                
                if (isExpandable(parentItem, null, parentItem.getData())) {
                    newItem(parentItem, SWT.NULL, -1);
                } else {
                    
                    tree.redraw();