Bug 2178

Summary: [JFace] Cannot select root of hierarchy view (1GE92IL)
Product: [Eclipse Project] Platform Reporter: Unknown User <unknown>
Component: UIAssignee: Kevin Haaland <Kevin_Haaland>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Windows 98   
Whiteboard:

Description Unknown User CLA 2001-10-10 22:28:02 EDT
1. Open some hierarchy like "org.eclipse.swt.Control" in Type Hierarchy.
2. Try to select Control.  

Result: On my system it is impossible until I select a subtree below root.  
Then I can select the Control.

Observation: Control has a dotted border around it.  Perhaps it has selection
but there is a focus problem.

NOTES:
MA (5/29/01 10:11:53 AM)
	Could JFace look at it?
	The element has been selected by code (treeviewer.setSelection()) while the viewer was in background.
	When brought to front the selection is not visible, but seems to be set anyway (and prevents from being selected again)

MA (5/31/01 12:30:14 PM)
	It has to be something with refresh. When the hierarhcy gets a new input, the changing is not done by changing the input of the tree viewers
	but by calling refresh on the viewer.

NE (05/31/01 10:33:52 AM)
	Seems to work OK the first time the hierarchy view is opened.
	Try again, selecting different type in packages view (to hide hierarchy view) and choosing Show In Hierarchy.
	Reproduce in JDK build on 98, and in VAJ on 2000, with hierarchy view in either 
	top-down ("type hierarchy") or bottom-up ("supertype hierarchy") mode.

NE (05/31/01 12:47:47 PM)
	SWT bug, encountered due to AbstractTreeViewer reusing items in updateChildren().
	See 1GELNIG: SWT:WIN2000 - Tree item selection not shown if same item previously cleared
Comment 1 DJ Houghton CLA 2001-10-29 17:57:26 EST
PRODUCT VERSION:

Eclipse 0.110 on jdk

Comment 2 Kevin Haaland CLA 2001-11-01 10:53:55 EST
Dependent SWT PR fixed in build 117
Comment 3 Kevin Haaland CLA 2001-11-01 10:58:25 EST
Tried steps in latest build. Appears that SWT fix is all that was required.