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/AbstractListViewer.java
if (equals(elements[i], input)) {
                setInput(null);
                return;
            }
            int ix = listMap.indexOf(elements[i]);
            if (ix >= 0) {
                listRemove(ix);
                listMap.remove(ix);
                unmapElement(elements[i], getControl());
            }
        }
    }
    /**
     * Removes the given elements from this list viewer.
     * The selection is updated if required.
     * <p>
     * This method should be called (by the content provider) when elements 
     * have been removed from the model, in order to cause the viewer to accurately
     * reflect the model. This method only affects the viewer, not the model.
     * </p>
     *
     * @param elements the elements to remove
     */
    public void remove(final Object[] elements) {
        assertElementsNotNull(elements);
        if (elements.length == 0) {
        	return;
        }
        preservingSelection(new Runnable() {
            public void run() {