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

Bug 399633

Summary: How best to get the Orion workspace using the file client
Product: [ECD] Orion Reporter: Anton McConville <antonm>
Component: ClientAssignee: John Arthorne <john.arthorne>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Mike_Wilson
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Anton McConville CLA 2013-01-31 09:54:06 EST
For Orion Projects, I need to include the Orion workspace in the navigation tree. Right now when I ask for the workspace information I do it like this:

var loadedWorkspace = fileClient.loadWorkspace("");
			
Deferred.when( loadedWorkspace, function(workspace) {	
   var location = workspace.Location;
   myexplorer.loadResourceList( location, true, null );
});

This results in the content of the workspace being listed in the tree - the children of the workspace, as opposed to an root folder for the entire workspace, which is what I'm looking for.

workspace.Location is the same as workspace.ChildrenLocation

In order to get the behavior I want, I'll have to artificially make a parent folder for the workspace. I'm not sure that this is how it should work.

When I ask for the the drives, I get a root folder for the drive - which is what I want ...

var loadedWorkspace = fileClient.loadWorkspace("");
			
Deferred.when( loadedWorkspace, function(workspace) {	
   var location = workspace.DriveLocation;
   myexplorer.loadResourceList( location, true, null );
});

Should the workspace.Location not return the same as a DriveLocation?
Comment 1 John Arthorne CLA 2015-04-27 11:27:46 EDT
.