The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

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/I201404012230/bundles/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, visibleWhen)
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, commandRegistry)
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.getFileCommandIds()
Reads the cached non-openWith file commands from extensions, and returns an array containing their ids.
<static>  
orion.extensionCommands.getOpenWithCommand(commandRegistry, item, The)
Gets the "open with" command in the given commandRegistry for a given item.
<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, visibleWhen)
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
{Function} visibleWhen
Returns:
{orion.Promise}

<static> {orion.Promise} orion.extensionCommands.createFileCommands(serviceRegistry, contentTypeRegistry, includeNavCommands, includeOpenWithCommands, commandRegistry)
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.ContentTypeRegistry} 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.
{orion.commandregistry.CommandRegistry} commandRegistry
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.ContentTypeRegistry} 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> {Array} orion.extensionCommands.getFileCommandIds()
Reads the cached non-openWith file commands from extensions, and returns an array containing their ids. If the cached commands haven't been created an exception will be thrown.
Returns:
{Array} An array containing the {String} ids of the cached non-openWith file commands

<static> orion.extensionCommands.getOpenWithCommand(commandRegistry, item, The)
Gets the "open with" command in the given commandRegistry for a given item. If #createFileCommands, has not been called, this returns null.
Parameters:
{orion.commandregistry.CommandRegistry} commandRegistry
The command registry to consult.
{Object} item
The item to open.
{orion.commands.Command[]} The
optional list of commands to search for the appropriate command. If it is not provided, orion.extensionCommands.getOpenWithCommands() is used.

<static> {orion.commands.Command[]} orion.extensionCommands.getOpenWithCommands(commandRegistry)
Gets any "open with" commands in the given commandRegistry. If #createFileCommands, 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 Apr 01 2014 22:58:23 GMT-0400 (EDT)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.