Bug 5431 - [CVS Sync View] Sychronize View - tree has strange expansion behaviour
Summary: [CVS Sync View] Sychronize View - tree has strange expansion behaviour
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Jean-Michel Lemieux CLA
QA Contact:
URL:
Whiteboard:
Keywords: investigate
Depends on:
Blocks:
 
Reported: 2001-11-01 14:17 EST by Veronika Irvine CLA
Modified: 2004-05-06 00:58 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 Veronika Irvine CLA 2001-11-01 14:17:49 EST
Eclipse 20011025
Windows 2000

1) Synchronize with a project thta has incoming changes.
Notice that in the tree with the modified resources some items are expanded and 
some are not and one of the items is selected.
2) Select the repository in the Sychronize view and from the context menu 
select "Expand All".
The tree is now fully expanded.
3) Select one of the resources and from the context menu select Catchup.
Some of the tree items that were expanded in step 2 are now collapsed.

This is an issue for me because what I generally do when catching up with the 
changes made by others on my team is to catch up with the changes that I agree 
with and understand first and then review in more detail the changes that are 
not immediately clear to me.  This means I repeatedly catch up on a number of 
small items.  Currently I need to go back to the top and select "Expand all 
items" from the context menu each time I catch up.

One thing to note is that if an item is programmatically selected in a tree, 
SWT ensures that item is visible which includes expanding any parent items and 
scrolling the item into view if required.
Comment 1 Kevin McGuire CLA 2002-02-28 17:09:38 EST
Switching modes should preserve selection.
Comment 2 Kevin McGuire CLA 2002-04-17 17:20:36 EDT
post 2.0
Comment 3 Michael Valenta CLA 2002-09-08 19:44:38 EDT
Reopening
Comment 4 Michael Valenta CLA 2002-09-08 19:46:44 EDT
I seem to recall that James mentioned this was due to how the UI component 
tried to maintain the expansionsm after an item was added or removed from the 
list. We've seen simialr behavior in the repo view after adding or removeing a 
liocation.
Comment 5 Jean-Michel Lemieux CLA 2003-07-14 21:46:33 EDT
Will ensure that expansion is preserved in the new sync view. It probably isn't
great yet, but that is because it wasn't looked at yet :)
Comment 6 Jean-Michel Lemieux CLA 2003-08-19 10:15:51 EDT
No time in M3.
Comment 7 Jean-Michel Lemieux CLA 2004-05-06 00:58:22 EDT
Verified that expansion is preserve when:
- performing operations on nodes in the sync view
- switching layouts (compressed, flat)
- switching modes