Project: SWT
Bug 42787 CheckboxTableViewer does not clear selection
Reported: 2003-09-09 10:15:22 | Status: resolved fixed

20030909 Sun 1.4.2 VM The following code does not clear the selection in CheckboxTableViewer (from CheckboxTableViewerTest) on the Sun 1.4.2 VM. It does using the Sidecar 1.3.1 VM and on Windows using the Sun 1.4.2 TestElement first= fRootElement.getFirstChild(); StructuredSelection selection= new StructuredSelection(first); fViewer.setSelection(selection); fViewer.setSelection(new StructuredSelection()); ISelection result= fViewer.getSelection(); assertTrue(result.isEmpty());

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/List.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java