Bug 291212 - [Sync View] Selecting a node in the sync tree for Change Sets works only if the node has been already shown
Summary: [Sync View] Selecting a node in the sync tree for Change Sets works only if t...
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact: Tomasz Zarna CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 291217
  Show dependency tree
 
Reported: 2009-10-02 11:26 EDT by Tomasz Zarna CLA
Modified: 2019-09-06 16:16 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.