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
protected abstract Item[] getSelection(Control control);
    
    protected List getSelectionFromWidget() {
        Widget[] items = getSelection(getControl());
        ArrayList list = new ArrayList(items.length);
        for (int i = 0; i < items.length; i++) {
            Widget item = items[i];
            Object e = item.getData();
            if (e != null) {
				list.add(e);
			}
        }
        return list;
    }
    /*
     * Overridden in AbstractTreeViewer to fix bug 108102 (code copied from StructuredViewer
     * to avoid introducing new API)
     * (non-Javadoc)
     * @see org.eclipse.jface.viewers.StructuredViewer#handleDoubleSelect(org.eclipse.swt.events.SelectionEvent)
     */
	protected void handleDoubleSelect(SelectionEvent event) {
		
		Control control = getControl();
		if (control != null && !control.isDisposed()) {
			
			
			
			
			ISelection selection;
			if (event.item != null && event.item.getData() != null) {