Bug 127629 [Markers] problems view: keep selection stable
I20050214-0010 1. Select a grouping (e.g. Java problem type) and select a marker inside 2. Switch to another grouping Selection is gone. Same when - changing filter - a build adds new marker (in a different file)
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
}
			getViewer().refresh(true);
			Tree tree = getTree();
			if (tree != null && !tree.isDisposed()) {
				updateStatusMessage();
				updateTitle();
				
				if (getCurrentMarkers().getSize() < 20) {
					getViewer().expandAll();
				} else {
					MarkerCategory[] categories = getMarkerAdapter()
							.getCategories();
					if (categories != null) {
						if (categories.length == 1)
							
							getViewer().expandAll();
						else {
							for (int i = 0; i < categories.length; i++) {
								MarkerCategory category = categories[i];
								if (categoriesToExpand.contains(category
										.getName())) {
									getViewer().expandToLevel(category,
											AbstractTreeViewer.ALL_LEVELS);
								}
							}
						}
					}
					categoriesToExpand.clear();
				}
			}