Bug 291212

Summary: [Sync View] Selecting a node in the sync tree for Change Sets works only if the node has been already shown
Product: [Eclipse Project] Platform Reporter: Tomasz Zarna <tomasz.zarna>
Component: TeamAssignee: Platform Team Inbox <platform-team-inbox>
Status: ASSIGNED --- QA Contact: Tomasz Zarna <tomasz.zarna>
Severity: normal    
Priority: P3    
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 291217    

Description Tomasz Zarna CLA 2009-10-02 11:26:46 EDT
Bug 219570 introduced an option to link Sync view with editors, but when sync'ed and switched to Change Sets model it doesn't work as expected. If "Link with Editor" is on, and user activates an editor only a node which has been previously shown will be selected. Need to investigate why this is happening.
Comment 1 Tomasz Zarna CLA 2009-10-15 08:13:06 EDT
Most probably this is caused by the fact that StructuredViewer keeps a map from the viewer's model elements to SWT widgets[1]. This map is used when looking for an item to show[2]. Apparently elements are added to the map while tree is expanded[3].

[1] org.eclipse.jface.viewers.StructuredViewer.elementMap
[2] org.eclipse.jface.viewers.StructuredViewer.findItems(Object)
[3] org.eclipse.jface.viewers.StructuredViewer.mapElement(Object, Widget)
Comment 2 Eclipse Webmaster CLA 2019-09-06 16:16:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.