Bug 100565 [Viewers] Tree viewer selection not revealed if unchanged
[RC3] Steps: 1. Check out org.eclipse.ui.workbench 2. Open Workbench.java 3. Ctrl-O to open Quick Outline 4. Type "r", note that the field "runEventLoop" is the first match 5. Type "u", note that the field is not shown anymore 6. Type arrow-down key, note that you cannot see the selected entry
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/AbstractTreeViewer.java
if(lastInsertion == items.length)
					index = -1;
				else{
					while(lastInsertion < items.length && sorter.compare(this,element,items[lastInsertion].getData()) == 0){
						
						
						if (items[lastInsertion].getData().equals(element)) {
							
							refresh(element);
							newItem = false;
						}
						lastInsertion ++;
					}
					
					if(lastInsertion == items.length)
						index = -1;
					else
						index = lastInsertion + i; 					
				}
			}
			if(newItem)
				createTreeItem(widget, element, index);		
		}
    }
	
    /**
     * See if element is the data of one of the elements in 
     * items.
     * @param items
     * @param element