Eclipseのヘルプはワークベンチのメニューの
ヘルプ >> ヘルプ目次
にありますが、このhtmlベースのヘルプも拡張して好きなヘルプを載せることができます。そして拡張するための拡張ポイントがorg.eclipse.help.toc拡張ポイントです。
この拡張ポイントで目次となるファイル(xml形式)を指定し、そのxmlファイルで目次に対応するhtmlファイルを指定します。
org.eclipse.help.toc
<extension point="org.eclipse.help.toc"> <toc primary="true" file="toc.xml"/> <-トップの目次となるxmlファイル。 <toc file="tocconcepts.xml"/> <toc file="tocgettingstarted.xml"/> <toc file="tocreference.xml"/> <toc file="tocsamples.xml"/> <toc file="toctasks.xml"/> </extension>
<?xml version="1.0" encoding="UTF-8"?> <?NLS TYPE="org.eclipse.help.toc"?> <toc label="Sample Table of Contents" topic="html/toc.html"> ↑目次のSample Table of Contents をクリックしたときに 表示されるhtmlはhtml/toc.htmlです、の意味 <topic label="Getting Started"> <anchor id="gettingstarted"/> </topic> <topic label="Concepts"> <-目次にConceptsと表示 <anchor id="concepts"/> <-toc.xml#conceptsとなってる箇所をここに挿入 </topic> <topic label="Tasks"> <anchor id="tasks"/> </topic> <topic label="Reference"> <anchor id="reference"/> </topic> <topic label="Samples"> <anchor id="samples"/> </topic> </toc>
<?xml version="1.0" encoding="UTF-8"?> <?NLS TYPE="org.eclipse.help.toc"?> <toc label="Concepts" link_to="toc.xml#concepts"> <-ここでリンクされてる <topic label="Main Topic" href="html/concepts/maintopic.html"> <topic label="Sub Topic" href="html/concepts/subtopic.html" /> </topic> <topic label="Main Topic 2"> <topic label="Sub Topic 2" href="html/concepts/subtopic2.html" /> </topic> </toc>
この記事は
現在のアクセス:15829