Class eclipse.FileService
Provides operations on files, folders, and projects.
Defined in: </shared/eclipse/e4/orion/I201103010200/plugins/org.eclipse.orion.client.core/static/js/fileClient.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
createFile(fileName, item, updateFunction)
|
|
createFolder(folderName, item, updateFunction)
|
|
createProject(url, projectName, serverPath, create, callback)
|
|
createWorkspace(name, onCreate)
Creates a new workspace with the given name.
|
|
deleteFile(item, function(Object))
|
|
fetchChildren(location, A)
Obtains the children of a remote resource
|
|
<inner> |
FileService(serviceRegistry)
|
loadWorkspace(location, onLoad)
Loads the workspace with the given id and sets it to be the current
workspace for the IDE.
|
|
loadWorkspaces(onLoad)
Loads all the user's workspaces.
|
|
removeProject(workspace, project, callback)
|
Method Detail
createFile(fileName, item, updateFunction)
- Parameters:
- fileName
- item
- {Function(Object)} updateFunction
createFolder(folderName, item, updateFunction)
- Parameters:
- folderName
- item
- {Function(Object)} updateFunction
createProject(url, projectName, serverPath, create, callback)
- Parameters:
- url
- projectName
- serverPath
- create
- callback
createWorkspace(name, onCreate)
Creates a new workspace with the given name. The resulting workspace is
passed as a parameter to the provided onCreate function.
- Parameters:
- {String} name
- The name of the new workspace
- {Function} onCreate
- The function to invoke after the workspace is created
deleteFile(item, function(Object))
- Parameters:
- item
- function(Object)
- updateFunction
fetchChildren(location, A)
Obtains the children of a remote resource
- Parameters:
- location
- The location of the item to obtain children for
- {Function(Array)} A
- function that will be provided with an array of children
<inner>
FileService(serviceRegistry)
- Parameters:
- serviceRegistry
loadWorkspace(location, onLoad)
Loads the workspace with the given id and sets it to be the current
workspace for the IDE. The workspace is created if none already exists.
- Parameters:
- {String} location
- the location of the workspace to load
- {Function} onLoad
- the function to invoke when the workspace is loaded
loadWorkspaces(onLoad)
Loads all the user's workspaces.
- Parameters:
- {Function} onLoad
- the function to invoke with the loaded workspaces
removeProject(workspace, project, callback)
- Parameters:
- workspace
- project
- callback