Adding context-sensitive Help to a plugin
From Aptana Development
This page describes how to hook up context-sensitive Help for a plugin in Aptana.
Instructions
Add the following to plugin.xml:
<extension point="org.eclipse.help.contexts"> <contexts file="contexts.xml" /> </extension>
Add the following to contexts.xml:
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.contexts"?>
<contexts>
<context id="outline">
<description>The core JavaScript reference as defined by the ECMA spec</description>
<topic label="JavaScript editor concepts" href="concepts/concepts-7.htm"/>
</context>
</contexts>
Add the following the actual view, control, or IAction:
IWorkbenchHelpSystem whs = PlatformUI.getWorkbench().getHelpSystem(); whs.setHelp(this.getControl(), "com.aptana.ide.js.ui.outline");
Note that only the conde actually specifies the complete id of the control.
Adding Help to an Outline View
PlatformUI.getWorkbench().getHelpSystem().setHelp(this.getControl(), "com.aptana.ide.js.ui.JsContentOutlinePage");
Related Topics
- Eclipse tips and tricks
- Setting a run-time preference manually
- Embedding a JAR into a plugin
- Creating a new Aptana Editor


