Bug 55531 Single click mode opens on collapse
I20040318 - do a New Java Search - set Group by Project - expand tree to see a method containing a match - select the method - collapse the project containing the selection observe: the node collapses, the selection is set to the project node and the node is expanded again. I have single selection enabled.
bundles/org.eclipse.jface/src/org/eclipse/jface/util/OpenStrategy.java
if(w instanceof Tree) {
					Tree tree = (Tree)w;
					TreeItem item = tree.getItem(new Point(e.x,e.y));
					if(item != null)
						tree.setSelection(new TreeItem[]{item});
					selEvent.item = item;
				} else if(w instanceof Table) {
					Table table = (Table)w;
					TableItem item = table.getItem(new Point(e.x,e.y));
					if(item != null)
						table.setSelection(new TableItem[]{item});
					selEvent.item = item;						
				} else if(w instanceof TableTree) {
					TableTree table = (TableTree)w;
					TableTreeItem item = table.getItem(new Point(e.x,e.y));
					if(item != null)
						table.setSelection(new TableTreeItem[]{item});
					selEvent.item = item;
				} else {
					return;
				}
				if(selEvent.item == null)
					return;
				fireSelectionEvent(selEvent);
				firePostSelectionEvent(selEvent);
			}
		};
	}
}