Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 491942 - File client should dispatch "Changed" event when a project is created.
Summary: File client should dispatch "Changed" event when a project is created.
Status: CLOSED WONTFIX
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 12.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 12.0   Edit
Assignee: libing wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-18 17:24 EDT by libing wang CLA
Modified: 2017-01-10 15:39 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 libing wang CLA 2016-04-18 17:24:26 EDT
Currently most of the fileClinet APIs are sending out a "Changed" event where ever the API can CHNAGE the file system. createProject is the only API that is left because the UI side to handle the event is quite complicated.

We need to:
1. Send out event from fileClient.createProject
2. The UI side should then:
   - reload the whole work space to reflect the new project in the navigator tree
   - read the new project metadata by the newProj.ContentLocation
   - select the new project

3. We also need to remove all the code from fileCommands.js and projectCommands.js to avoid them doing duplicated work from step 2.
Comment 1 libing wang CLA 2016-04-18 17:28:20 EDT
When a folder directly under the work space root is created, createProject is also called. We need to test this case as well.
Comment 2 Michael Rennie CLA 2017-01-10 15:39:39 EST
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/msg04002.html