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

Bug 491926

Summary: Should not change the file navigator selection when a file or folder is added silently.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 12.0   
Target Milestone: 12.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 487279    

Description libing wang CLA 2016-04-18 11:41:14 EDT
With the fix of bug 488582, now if javascript plugin adds a file silently, e.g. by "add to .tern-project file" from quick fix, the file navigator reflect the .tern-project file right away.
But by default we select the .tern-project file in the navigator, which is breaking the end user's work flow.
Comment 1 libing wang CLA 2016-04-18 11:47:13 EDT
I ma adding the third optional param to the two API in the fileClient.js

createFile: function(parentLocation, fileName, select)
createFolder: function(parentLocation, folderName, select)

By default "select" is undefined. So the default call of those two APIs will not introduce the selection of the new artifact. That means the calls from javascript plugin are silent.

I will pass the "select" param to true in the fileCommands.js so that when users create file/folder from menu, the new artifact will be selected.