If you are creating an application that is not based on the Eclipse framework, you can still use the Eclipse help system. Your application can package and install the stand-alone help system, a very small version of Eclipse that has had everything except the help system stripped out of it. Then, your application can make API calls from its Help menu, or from UI objects, to launch the help browser. The stand-alone help system has all the features of the integrated help system, except infopops and active help.
Help helpSystem = new Help("d:\\myApp\\eclipse\\plugins");
helpSystem.start();
At the end of your application, to shutdown the help system:
helpSystem.shutdown();
helpSystem.displayHelp();
You can also call help on specific primary TOC files or topics:
helpSystem.displayHelp("/com.mycompany.mytool.doc/toc.xml");
helpSystem.displayHelp("/com.mycompany.mytool.doc/tasks/task1.htm");
The org.eclipse.help.standalone.Help class has a simple main program that you can launch and see how the stand-alone help works out of the box. From a command line, run the following command:
java -classpath d:\myApp\eclipse\plugins\org.eclipse.help_2.0.0\help.jar
org.eclipse.help.standalone.Help d:\myApp\eclipse\plugins
The stand-alone help does not require the entire Eclipse Platform
package. It is possible to run the stand-alone help with the following plugins
(located in the eclipse\plugins directory):
org.apache.lucene
org.apache.xerces
org.eclipse.ant.core
org.eclipse.core.boot
org.eclipse.core.resources
org.eclipse.core.runtime
org.eclipse.help
org.eclipse.help.ui
org.eclipse.help.webapp
org.eclipse.search
org.eclipse.swt
org.eclipse.tomcat
org.eclipse.ui
org.eclipse.update.core
In addition to these plugins, depending on the operating system or machine
architecture, you may need to also need to install the corresponding fragments
for the above plugins (when they exist). For example, on Windows, you need
to add the following fragments (also located in the eclipse\plugins directory):
org.eclipse.core.resources.win32
org.eclipse.help.ui.win32
org.eclipse.swt.win32
org.eclipse.update.core.win32