Bug 54737 Libraries dialog doesn't remember status of items in library tree
Preferences > Java > Build Path > User Libraries: The dialog does not seem to correctly remember the status of the items in the "Defined user libraries" tree. When I leave the dialog I close (un-cascade) all items. When I open the dialog again, most of the items are open (cascaded) again. This is disturbing because I cannot overview the items. It's like opening the Windows explorer with not only the drives shown but all folders being open.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/dialogfields/TreeListDialogField.java
fSelectionWhenEnabled= selection;
		if (fTree != null) {
			fTree.setSelection(selection, true);
		}
	}
	public void selectFirstElement() {
		Object element= null;
		if (fViewerSorter != null) {
			Object[] arr= fElements.toArray();
			fViewerSorter.sort(fTree, arr);
			if (arr.length > 0) {
				element= arr[0];
			}
		} else {
			if (fElements.size() > 0) {
				element= fElements.get(0);
			}
		}
		if (element != null) {
			selectElements(new StructuredSelection(element));
		}
	}
	public void postSetSelection(final ISelection selection) {
		if (isOkToUse(fTreeControl)) {
			Display d= fTreeControl.getDisplay();
			d.asyncExec(new Runnable() {
				public void run() {
					if (isOkToUse(fTreeControl)) {
						selectElements(selection);
					}