| orion.navigate.openWith | ||
|---|---|---|
|
|
|
| orion.navigate.command | Updating this document | |
The orion.navigate.openWith service is used to contribute the location of an editor for a particular file type. This service is purely declarative, with no implementation methods required.
None
Implementations of orion.navigate.openWith must define the following attributes:
Here is a sample plug-in that associates the Orion editor with .md (Markdown) files:
var provider = new eclipse.PluginProvider();
var serviceImpl = {};
var serviceProperties = {
name: "Orion web editor",
href: "/edit/edit.html#${Location}",
validationProperties: {Name: "*.md"}
};
provider.registerServiceProvider("orion.navigate.openWith", serviceImpl, serviceProperties);
provider.connect();
When this plug-in is installed, the user will see Orion web editor as an available target in the Open With Navigator menu beside .md files:
|
|
|
| orion.navigate.command | Updating this document |