Class Index | File Index

Classes


Class orion.file.ContentTypeRegistry


Defined in: </shared/eclipse/e4/orion/I201112052230/plugins/org.eclipse.orion.client.core/web/orion/contentTypes.js>.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
getContentType(fileMetadata)
 
 
 
 
Converts "orion.navigate.openWith" service contributions into orion.navigate.command that open the appropriate editors.
Class Detail
orion.file.ContentTypeRegistry(serviceRegistry)
Parameters:
{orion.serviceregistry.ServiceRegistry} serviceRegistry
The registry to use for looking up registered content types, editors, and associations.
Method Detail
{Object} getContentType(fileMetadata)
Parameters:
fileMetadata
Returns:
{Object} The content type descriptor

getContentTypes()

{Object} getContentTypesMap()
Returns:
{Object} A map of registered content type descriptors, keyed by content type id.

{Array} getEditors()
Returns:
{Array} An array of registered editors.

{Object[]} toFileCommands()
Converts "orion.navigate.openWith" service contributions into orion.navigate.command that open the appropriate editors.
Returns:
{Object[]} The fileCommands

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Dec 05 2011 22:32:59 GMT-0500 (EST)