Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 428022

Summary: [projectnav] bad refresh after cut/paste
Product: [ECD] Orion Reporter: Silenio Quarti <Silenio_Quarti>
Component: ClientAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gheorghe, Mike_Wilson
Version: 5.0Flags: gheorghe: review+
Target Milestone: 5.0 RC1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Silenio Quarti CLA 2014-02-12 13:04:31 EST
1) Create a new basic project. After creation it should show in the project-nav
2) Add some content (import zip or create folders). Need the tree to look like this at least:

Project Root
    dir1
    dir2
       subdir1
       subdir2

3) Select (subdir1, subdir2)
4) Ctrl+X to cut the selection (or use the menu)
5) Select the root (Project Root)
6) Ctrl+P to paste

After this the tree is bad. It does not show the project root. It only shows one of the subdirs pasted.
Comment 1 Silenio Quarti CLA 2014-02-12 13:42:30 EST
Project nav was failing to the detect the tree root because in the case of the project nav it does not contain the Location property. It has ContentLocation instead.  After 5.0, I will investigate whether the project root could have a the Location property set instead of ContentLocation.  For now, I added code to check for both.

Fixed
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=e0aa46961f1696486a124d53e339b105f3de8f41