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
internalExpand(element, false);
            expandedElements.put(element, element);
        }
        
        
        
        
        internalSetExpanded(expandedElements, getControl());
    }
    /**
     * Sets which nodes are expanded in this viewer's tree. The given list
     * contains the tree paths that are to be expanded; all other nodes are to
     * be collapsed.
     * <p>
     * This method is typically used when restoring the interesting state of a
     * viewer captured by an earlier call to <code>getExpandedTreePaths</code>.
     * </p>
     * 
     * @param treePaths
     *           the array of expanded tree paths
     * @see #getExpandedTreePaths()
     * 
     * @since 3.2
     */
    public void setExpandedTreePaths(TreePath[] treePaths) {
        assertElementsNotNull(treePaths);
        final IElementComparer comparer = getComparer();
        IElementComparer treePathComparer = new IElementComparer(){