Bug 344737 - [client] navigator expansion cache not handling nested expansions
Summary: [client] navigator expansion cache not handling nested expansions
Status: RESOLVED WONTFIX
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: polish
: 349134 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-05-04 13:21 EDT by Susan McCourt CLA
Modified: 2015-05-05 16:01 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2011-05-04 13:21:51 EDT
the code that remembers navigator expansions is traversing the expanded nodes in the order they were expanded.  This ensures that we open the parent before we open, say, an expanded child.

The problem, though, is that the expand is asynchronous, so we need to be smarter about expanding the items in the cache.  If the item is nested under the previous item, it needs to be expanded only after the first expansion is complete.

I hadn't noticed this because I tend to link directly into the tree and expand only a couple levels.  but if you are using a deep tree it's immediately apparent.
Comment 1 Susan McCourt CLA 2011-05-04 13:28:10 EDT
I just realized that the fastest way to handle this would be to analyze the cache list and figure out how much depth is needed.  Then we would only need to do one get.  The challenge then becomes collapsing the nodes that weren't open at that level.
Comment 2 Susan McCourt CLA 2011-06-13 12:34:06 EDT
*** Bug 349134 has been marked as a duplicate of this bug. ***
Comment 3 John Arthorne CLA 2015-05-05 15:48:07 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html
Comment 4 John Arthorne CLA 2015-05-05 16:01:30 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:


https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html