blob: d466ad5d195bd4a878a81dd292bc4c362bc0ad47 [file] [log] [blame]
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.5 [en] (Win98; I) [Netscape]">
<title>Help System extension points: Contexts</title>
</head>
<body link="#0000FF" vlink="#800080">
<center>
<h1>
Contexts</h1></center>
<b><i>Identifier: </i></b>org.eclipse.help.contexts
<p><b><i>Description:</i></b> For defining context-sensitive help for an
individual plug-in.
<p><b><i>Configuration Markup:</i></b>
<p><tt>&nbsp;&nbsp; &lt;!ELEMENT contexts EMPTY></tt>
<br><tt>&nbsp;&nbsp; &lt;!ATTLIST contexts name CDATA #REQUIRED></tt>
<ul>
<li>
<b>name</b> - the name of the manifest file which contains the context-sensitive
help documentation for this plug-in.</li>
</ul>
<i><b>Configuration Markup for Contexts </b>(this is what goes into the
contexts manifest file)<b>:</b></i>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT contexts (context)* ) ></tt>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT context (description?,topic*) ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST context id&nbsp; ID #REQUIRED ></tt>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT description (#PCDATA)></tt>
<p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT topic (topic)* ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic id ID #IMPLIED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic label CDATA #REQUIRED ></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic href&nbsp; CDATA #IMPLIED
></tt>
<p>The contexts manifest files provide all the information needed when
context-sensitive help is requested by the user. The id is passed by the
platform to identify the currently active context. The context definition
with a matching id is then retrieved. This context element contains the
brief description that is to be displayed to the user, as well as related
topics that the user might find useful for understanding the current context.
<br>&nbsp;
<p><b><i>Examples:</i></b>
<p>The following is an example of using the <tt>contexts</tt> extension
point.
<p>(in file <tt>plugin.xml</tt>)
<p><tt>&nbsp;&nbsp; &lt;extension point="org.eclipse.help.contexts"></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;contexts name="xyzContexts.xml"/></tt>
<br><tt>&nbsp;&nbsp; &lt;/extension></tt>
<br>&nbsp;
<p>(in file <tt>xyzContexts.xml</tt>)
<p><tt>&nbsp;&nbsp;&nbsp; &lt;contexts></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;context&nbsp; id="generalContextId"></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;description> This
is a sample F1 help string.&lt;/description></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;topic href="contexts/RelatedContext1.html"&nbsp;
label="Help Related Topic 1"/></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;topic href="contexts/RelatedContext2.html"&nbsp;
label="Help Related Topic 2"/></tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/context></tt>
<br><tt>&nbsp;&nbsp;&nbsp; &lt;/contexts></tt>
<br>&nbsp;
<p><b><i>API Information</i>: </b>No code is required to use this extension
point. All that is needed is to supply the appropriate manifest file(s)
mentioned in the <tt>plugin.xml</tt> file.
<p><b><i>Supplied Implementation: </i></b>The optional default implementation
of the help system UI supplied with the Eclipse platform fully supports
the <tt>contexts</tt> extension point.
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation 2000" BORDER=0 height=12 width=195></a>
</body>
</html>