Class orion.file.ContentTypeRegistry
Defined in: </shared/eclipse/e4/orion/I201112052230/plugins/org.eclipse.orion.client.core/web/orion/contentTypes.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.file.ContentTypeRegistry(serviceRegistry)
|
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