| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.help" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.help" id="contexts" name="Contexts"/> |
| </appInfo> |
| <documentation> |
| For defining context-sensitive help for an individual plug-in. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appInfo> |
| <meta.element /> |
| </appInfo> |
| </annotation> |
| <complexType> |
| <choice minOccurs="1" maxOccurs="unbounded"> |
| <element ref="contexts"/> |
| <element ref="contextProvider"/> |
| </choice> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="contexts"> |
| <annotation> |
| <documentation> |
| a context-sensitive help contribution made by supplying an XML file |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="file" type="string" use="required"> |
| <annotation> |
| <documentation> |
| the name of the manifest file which contains the context-sensitive help documentation for this plug-in. |
| <p> |
| <i><b>Configuration Markup for what goes into the |
| contexts manifest file:</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 |
| <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;id CDATA #REQUIRED |
| <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title CDATA #IMPLIED ></tt> |
| <p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT description (#PCDATA)></tt> |
| <p><tt>&nbsp;&nbsp;&nbsp; &lt;!ELEMENT topic EMPTY ></tt> |
| <br><tt>&nbsp;&nbsp;&nbsp; &lt;!ATTLIST topic |
| <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;label CDATA #REQUIRED </tt> |
| <br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;href CDATA #REQUIRED ></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 the help system to identify the currently active context.The context definitions with matching IDs are then retrieved. If a title is defined it will be used when context help is displayed in the Help view, both as the title in the related topics section and also as |
| the search term in the "More results" section. The IDs in the manifest file, must not contain the period character, since the IDs are uniquely identified by pluginID.contextID string when in memory. The IContext object is then created by help system that contains descriptions and topics from all context definitions for a given ID in a plug-in.&nbsp; The description is to be displayed to the user, and |
| related topics might be useful to the user for understanding the current |
| context.&nbsp; The related topic are html files packaged in doc.zip, together |
| with topics that are part of on line help. |
| </p> |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="resource"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="plugin" type="string"> |
| <annotation> |
| <documentation> |
| Plugin to which its context definitions are extended with extra information. |
| <p>If a plugin defines some context id's, one can extend the description or related links of a context by declaring another context with the same id.</p> |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="contextProvider"> |
| <annotation> |
| <documentation> |
| (<b>since 3.3</b>) a context-sensitive help contribution made by supplying a java class to generate the content at run-time |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| the implementation class for the context-sensitive help provider. This class must implement the <samp>org.eclipse.help.AbstractContextProvider</samp> interface. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.help.AbstractContextProvider"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| The following is an example of using the contexts |
| extension point: |
| <br> |
| (in file <tt>plugin.xml</tt>) |
| <p> |
| <pre> |
| <extension point="org.eclipse.help.contexts"> |
| <contexts file="xyzContexts.xml"/> |
| </extension> |
| </pre> |
| </p> |
| |
| <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><em>Externalizing Strings</em></b> |
| The Context XML files can be translated and the resulting copy (with translated |
| descriptions labels) should be placed in nl/&lt;language>/&lt;country> |
| or nl/&lt;language> directory.&nbsp; The &lt;language> and &lt;country> |
| stand for two letter language and country codes as used in locale codes.&nbsp; |
| For example, Traditional Chinese translations should be placed in the nl/zh/TW |
| directory.&nbsp; The nl/&lt;language>/&lt;country> directory has a higher |
| priority than nl/&lt;language>.&nbsp; Only if no file is found in the nl/&lt;language>/&lt;country>, |
| the file residing in nl/&lt;language> will be used.&nbsp; The the root |
| directory of a plugin will be searched last. |
| <p>The related topics contained in doc.zip can be localized by creating |
| a doc.zip file with translated version of documents, and placing doc.zip |
| in |
| <br>nl/&lt;language>/&lt;country> or nl/&lt;language> directory. The help |
| system will look for the files under this directories before defaulting |
| to plugin directory. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| An implementation of <samp>org.eclipse.help.AbstractContextProvider</samp> must be supplied if a <samp>contextProvider</samp> is used. |
| </documentation> |
| </annotation> |
| |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| The default implementation of the help system UI supplied with the Eclipse platform fully supports this extension point. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2000, 2006 IBM Corporation and others.<br> |
| All rights reserved. This program and the accompanying materials are made |
| available under the terms of the Eclipse Public License v1.0 which accompanies |
| this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |