Class Index | File Index

Classes


Class orion.extensionCommands

This class contains static utility methods for creating and managing commands from extension points related to file management.
Defined in: </shared/eclipse/e4/orion/I201306251555/plugins/org.eclipse.orion.client.ui/web/orion/extensionCommands.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Utility methods
Method Summary
Method Attributes Method Name and Description
<static>  
orion.extensionCommands.createAndPlaceFileCommandsExtension(serviceRegistry, commandRegistry, toolbarId, position, commandGroup, isNavigator)
Collects file commands from extensions, turns them into orion.commands.Commands, and adds the commands with the given commandRegistry.
<static>  
orion.extensionCommands.createFileCommands(serviceRegistry, contentTypeRegistry, includeNavCommands, includeOpenWithCommands)
Reads file commands from extensions ("orion.navigate.command" and "orion.navigate.openWith"), and converts them into instances of orion.commands.Command.
<static>  
orion.extensionCommands.createOpenWithCommands(serviceRegistry, commandRegistry, contentTypeRegistry)
Reads "orion.navigate.openWith" extensions, and converts them into instances of orion.commands.Command.
<static>  
orion.extensionCommands.getOpenWithCommands(commandRegistry)
Gets any "open with" commands in the given commandRegistry.
Class Detail
orion.extensionCommands()
Utility methods
Method Detail
<static> {orion.Promise} orion.extensionCommands.createAndPlaceFileCommandsExtension(serviceRegistry, commandRegistry, toolbarId, position, commandGroup, isNavigator)
Collects file commands from extensions, turns them into orion.commands.Commands, and adds the commands with the given commandRegistry.
Parameters:
{orion.serviceregistry.ServiceRegistry} serviceRegistry
{orion.commandregistry.CommandRegistry} commandRegistry
{String} toolbarId
{Number} position
{String} commandGroup
{Boolean} isNavigator
Returns:
{orion.Promise}

<static> {orion.Promise} orion.extensionCommands.createFileCommands(serviceRegistry, contentTypeRegistry, includeNavCommands, includeOpenWithCommands)
Reads file commands from extensions ("orion.navigate.command" and "orion.navigate.openWith"), and converts them into instances of orion.commands.Command.
Parameters:
{orion.serviceregistry.ServiceRegistry} serviceRegistry
{orion.core.ContentTypeService} contentTypeRegistry Optional
If not provided, will be obtained from the serviceRegistry.
{String} includeNavCommands Optional, Default: "global"
What kinds of orion.navigate.command contributions to include in the list of returned file commands. Allowed values are:
"all"
Include all nav commands.
"global"
Include only nav commands having the forceSingleItem and showGlobally flags.
"none"
Include no nav commands.
{Boolean} includeOpenWithCommands Optional, Default: true
Whether to include commands derived from orion.navigate.openWith in the list of returned file commands.
Returns:
{orion.Promise} A promise resolving to an orion.commands.Command[] giving an array of file commands.

<static> {orion.Promise} orion.extensionCommands.createOpenWithCommands(serviceRegistry, commandRegistry, contentTypeRegistry)
Reads "orion.navigate.openWith" extensions, and converts them into instances of orion.commands.Command.
Parameters:
{orion.serviceregistry.ServiceRegistry} serviceRegistry
{orion.commandregistry.CommandRegistry} commandRegistry Optional
{orion.core.ContentTypeService} contentTypeRegistry Optional
If not provided, will be obtained from the serviceRegistry.
Returns:
{orion.Promise} A promise resolving to an orion.commands.Command[] giving an array of file commands.

<static> {orion.commands.Command[]} orion.extensionCommands.getOpenWithCommands(commandRegistry)
Gets any "open with" commands in the given commandRegistry. If #createAndPlaceFileCommandsExtension, has not been called, this returns an empty array.
Parameters:
{orion.commandregistry.CommandRegistry} commandRegistry
The command registry to consult.
Returns:
{orion.commands.Command[]} All the "open with" commands added to the given commandRegistry.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 25 2013 15:58:42 GMT-0400 (EDT)