Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368294 - DirectoryPrompter doesn't work with multiple file systems installed
Summary: DirectoryPrompter doesn't work with multiple file systems installed
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 M2   Edit
Assignee: Susan McCourt CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-10 15:40 EST by Susan McCourt CLA
Modified: 2012-01-12 17:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2012-01-10 15:40:43 EST
If you have more than one file system plugin installed, the directory prompter shows a blank tree and you get a console error when you press OK
Comment 1 Susan McCourt CLA 2012-01-10 15:54:13 EST
The directory prompter should probably default to showing path "/" so that you can see all file systems and copy between them.

Also I'm not sure copy/move ever worked before so it's something to test as part of this bug.
Comment 2 Susan McCourt CLA 2012-01-12 17:24:01 EST
Fixed.  Several different issues, including:
- changed dialog to use "/" as root path so we get both file systems.
- the dialog wasn't coming up due to a layout problem that wasn't completely obvious.  In debug I realized that the only discernible difference between fetching at the file system root vs. the multi file system root was that the multi-file system root resolves the deferred before giving it back.  So it seemed like a timing problem, and (guessing) using a timeout to resolve the deferred fixed the problem.
- the fileImpl code for fetchChildren wasn't expecting the "top level path" on a fetch children, so I made changes there to run through the loadworkspace code and return the children.

With these changes, the dir prompter now shows all file systems and you can expand them.

I didn't test cross-file system copy/move because I don't have webdav configured.  We can open bugs when the time comes if it doesn't work.