| 1 |
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"> |
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en"> |
| 2 |
<html> |
<html> |
| 3 |
<head> |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
|
| 5 |
|
<meta http-equiv="Content-Type" |
| 6 |
|
content="text/html; charset=iso-8859-1"> |
| 7 |
|
|
| 8 |
<meta name="Author" content="eclipse.org"> |
<meta name="Author" content="eclipse.org"> |
| 9 |
<title> |
<title>Installing Standalone Help 2</title> |
| 10 |
Installing Standalone Help |
|
| 11 |
</title> |
<link rel="stylesheet" href="http://www.eclipse.org/default_style.css" |
| 12 |
<link rel="stylesheet" href="http://www.eclipse.org/default_style.css" type="text/css"> |
type="text/css"> |
| 13 |
</head> |
</head> |
| 14 |
<body> |
<body> |
| 15 |
|
|
| 16 |
<h1 style="background:#0080C0;color:#ffffff;">Installing the stand-alone help system</h1> |
<h1 |
| 17 |
<p>If you are creating an application that is not based on |
style="background: rgb(0,128,192) none repeat scroll 0% 50%; color: rgb(255,255,255);">Installing |
| 18 |
the Eclipse framework, you can still use the Eclipse help system. Your |
the stand-alone help system</h1> |
| 19 |
application can package and install the stand-alone help system, a very small |
|
| 20 |
version of Eclipse that has had everything except the help system stripped out |
<p>If you are creating an application that is not based on the Eclipse framework, |
| 21 |
of it. Then, your application can make API calls from its Help menu, or from UI |
you can still use the Eclipse help system. Your application can package |
| 22 |
objects, to launch the help browser. The stand-alone help system has all the |
and install the stand-alone help system, a very small version of Eclipse |
| 23 |
features of the integrated help system, except infopops and active help. </p> |
that has had everything except the help system stripped out of it. Then, |
| 24 |
|
your application can make API calls from its Help menu, or from UI objects, |
| 25 |
|
to launch the help browser. The stand-alone help system has all the features |
| 26 |
|
of the integrated help system, except infopops and active help. </p> |
| 27 |
|
|
| 28 |
<h2><b>Installation/packaging</b> </h2> |
<h2><b>Installation/packaging</b> </h2> |
| 29 |
These steps are for the help system |
These steps are for the help system integrator and are not meant to |
| 30 |
integrator and are not meant to address all the possible scenarios. It is |
address all the possible scenarios. It is assumed that the launching application |
| 31 |
assumed that the launching application is in Java, and that |
is in Java, and that all your documentation is delivered as Eclipse plug-ins |
| 32 |
all your documentation is delivered as Eclipse plug-ins and, in general, you are |
and, in general, you are familiar with the eclipse help system. |
|
familiar with the eclipse help system. |
|
| 33 |
<ol> |
<ol> |
| 34 |
<li>Download the Eclipse 2.0 Release level Platform Runtime Binary driver from |
<li>Download the Eclipse 2.0 Release level Platform Runtime Binary driver |
| 35 |
<a target="_blank" href="http://www.eclipse.org/downloads/">www.eclipse.org</a>.</li> |
from <a target="_blank" href="http://www.eclipse.org/downloads/">www.eclipse.org</a>.</li> |
| 36 |
<li>Install (unzip) the driver under your application directory, for |
<li>Install (unzip) the driver under your application directory, for |
| 37 |
example, <var>d:\myApp</var>. This will create an eclipse subdirectory, d:\myApp\eclipse that |
example, <var>d:\myApp</var>. This will create an eclipse subdirectory, |
| 38 |
contains the code required for the Eclipse platform (which includes the help |
d:\myApp\eclipse that contains the code required for the Eclipse platform |
| 39 |
system). </li> |
(which includes the help system). </li> |
| 40 |
|
|
| 41 |
</ol> |
</ol> |
| 42 |
|
|
| 43 |
<h2><b>How to call the help classes</b></h2> |
<h2><b>How to call the help classes</b></h2> |
| 44 |
|
|
| 45 |
<ol> |
<ol> |
| 46 |
<li>Make sure <em><span style="font-style: normal">d:\myApp\eclipse\plugins\org.eclipse.help_2.0.0\help.jar</span></em> is |
<li>Make sure <em><span style="font-style: normal;">d:\myApp\eclipse\plugins\org.eclipse.help_2.0.0\help.jar</span></em> |
| 47 |
on your app classpath. The class you use to start, launch, and shut down the help system is |
is on your app classpath. The class you use to start, launch, and shut |
| 48 |
org.eclipse.help.standalone.Help. </li> |
down the help system is org.eclipse.help.standalone.Help. </li> |
| 49 |
<li>In your application, create an instance of the Help class by passing the plugins |
<li>In your application, create an instance of the Help class by passing |
| 50 |
directory. This object should be held onto until the end of your application.<pre><em><span style="font-style: normal">Help helpSystem = new Help("d:\\myApp\\eclipse\\plugins");</span></em> </pre> |
the plugins directory. This object should be held onto until the end |
| 51 |
|
of your application. |
| 52 |
|
<pre><em><span style="font-style: normal;">Help helpSystem = new Help("d:\\myApp\\eclipse\\plugins");</span></em> </pre> |
| 53 |
</li> |
</li> |
| 54 |
<li>To start the help system: |
<li>To start the help system: |
| 55 |
<pre><em><span style="font-style: normal">helpSystem.start();</span></em> </pre> |
<pre><em><span style="font-style: normal;">helpSystem.start();</span></em> </pre> |
| 56 |
|
|
| 57 |
<p>At the end of your application, to shutdown the help system: </p> |
<p>At the end of your application, to shutdown the help system: </p> |
| 58 |
<pre><em><span style="font-style: normal">helpSystem.shutdown();</span></em> </pre> |
|
| 59 |
|
<pre><em><span style="font-style: normal;">helpSystem.shutdown();</span></em> </pre> |
| 60 |
</li> |
</li> |
| 61 |
<li>To invoke help when needed: |
<li>To invoke help when needed: |
| 62 |
<pre><em><span style="font-style: normal">helpSystem.displayHelp();</span></em> </pre> |
<pre><em><span style="font-style: normal;">helpSystem.displayHelp();</span></em> </pre> |
| 63 |
|
|
| 64 |
<p>You can also call help on specific primary TOC files or topics:</p> |
<p>You can also call help on specific primary TOC files or topics:</p> |
| 65 |
<pre>helpSystem.displayHelp("/com.mycompany.mytool.doc/toc.xml"); |
|
| 66 |
helpSystem.displayHelp("/com.mycompany.mytool.doc/tasks/task1.htm");</pre> |
<pre>helpSystem.displayHelp("/com.mycompany.mytool.doc/toc.xml");<br>helpSystem.displayHelp("/com.mycompany.mytool.doc/tasks/task1.htm");</pre> |
|
</li> |
|
|
<li>To launch context sensitive help, call |
|
|
helpSystem.displayContext(contextId, x, y) where contextId is a fully |
|
|
qualified context id. The screen coordinates, x and y, are not currently used. |
|
| 67 |
</li> |
</li> |
| 68 |
|
<li>To launch context sensitive help, call helpSystem.displayContext(contextId, |
| 69 |
|
x, y) where contextId is a fully qualified context id. The screen coordinates, |
| 70 |
|
x and y, are not currently used. </li> |
| 71 |
|
|
| 72 |
</ol> |
</ol> |
| 73 |
|
|
| 74 |
<h2><b>Testing stand-alone help</b> </h2> |
<h2><b>Testing stand-alone help</b> </h2> |
|
<p>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:</p> |
|
|
<pre>java -classpath d:\myApp\eclipse\plugins\org.eclipse.help_2.0.0\help.jar |
|
|
org.eclipse.help.standalone.Help d:\myApp\eclipse\plugins</pre> |
|
| 75 |
|
|
| 76 |
|
<p>The org.eclipse.help.standalone.Help class has a simple main program that |
| 77 |
|
you can launch and see how the stand-alone help works out of the box. From |
| 78 |
|
a command line, run the following command:</p> |
| 79 |
|
|
| 80 |
|
<pre>java -classpath d:\myApp\eclipse\plugins\org.eclipse.help_2.0.0\help.jar <br>org.eclipse.help.standalone.Help d:\myApp\eclipse\plugins</pre> |
| 81 |
|
|
| 82 |
|
<h2>[Optional] Installing a minimal set of plug-ins<br> |
| 83 |
|
</h2> |
| 84 |
|
|
| 85 |
|
<p>The stand-alone help does not require the entire Eclipse Platform |
| 86 |
|
package. It is possible to run the stand-alone help with the following plugins |
| 87 |
|
(located in the eclipse\plugins directory):<br> |
| 88 |
|
</p> |
| 89 |
|
|
| 90 |
|
<p><code> org.apache.lucene<br> |
| 91 |
|
org.apache.xerces<br> |
| 92 |
|
org.eclipse.ant.core<br> |
| 93 |
|
org.eclipse.core.boot<br> |
| 94 |
|
org.eclipse.core.resources<br> |
| 95 |
|
org.eclipse.core.runtime<br> |
| 96 |
|
org.eclipse.help<br> |
| 97 |
|
org.eclipse.help.ui<br> |
| 98 |
|
org.eclipse.help.webapp<br> |
| 99 |
|
org.eclipse.search<br> |
| 100 |
|
org.eclipse.swt<br> |
| 101 |
|
org.eclipse.tomcat<br> |
| 102 |
|
org.eclipse.ui<br> |
| 103 |
|
org.eclipse.update.core<br> |
| 104 |
|
</code> </p> |
| 105 |
|
|
| 106 |
|
<p>In addition to these plugins, depending on the operating system or machine |
| 107 |
|
architecture, you may need to also need to install the corresponding fragments |
| 108 |
|
for the above plugins (when they exist). For example, on Windows, you need |
| 109 |
|
to add the following fragments (also located in the eclipse\plugins directory):<br> |
| 110 |
|
</p> |
| 111 |
|
|
| 112 |
|
<p> <code>org.eclipse.core.resources.win32<br> |
| 113 |
|
org.eclipse.help.ui.win32<br> |
| 114 |
|
org.eclipse.swt.win32<br> |
| 115 |
|
org.eclipse.update.core.win32<br> |
| 116 |
|
</code> </p> |
| 117 |
|
|
| 118 |
|
<br> |
| 119 |
|
<br> |
| 120 |
|
<br> |
| 121 |
|
|
| 122 |
</body> |
</body> |
| 123 |
</html> |
</html> |
|
|
|