#topicpath
----
#contents
Eclipseのヘルプはワークベンチのメニューの
 ヘルプ >> ヘルプ目次
にありますが、このhtmlベースのヘルプも拡張して好きなヘルプを載せることができます。そして拡張するための拡張ポイントがorg.eclipse.help.toc拡張ポイントです。

この拡張ポイントで目次となるファイル(xml形式)を指定し、そのxmlファイルで目次に対応するhtmlファイルを指定します。

***拡張ポイント [#e65d7276]
org.eclipse.help.toc
 org.eclipse.help.toc


***plugin.xmlのサンプル [#cb38fa2e]

 <extension id="hogehoge" point="org.eclipse.help.toc">
   <toc file="toc.xml" primary="true" />
 <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(ここではtoc.xml)のサンプル [#z24cb416]
 <?xml version="1.0" encoding="UTF-8"?>
 <?NLS TYPE="org.eclipse.help.toc"?>
 
 <toc label="Sample Table of Contents" topic="html/toc.html">
    <topic label="Getting Started">
       <anchor id="gettingstarted"/>
    </topic>
    <topic label="Concepts">
       <anchor id="concepts"/>
    </topic>
    <topic label="Tasks">
       <anchor id="tasks"/>
    </topic>
    <topic label="Reference">
       <anchor id="reference"/>
    </topic>
    <topic label="Samples">
       <anchor id="samples"/>
    </topic>
 </toc>


*** <anchor id="concepts"/> でリンクされるtocconcepts.xml [#pc4d4842]
 <?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>


#ref(capture.png)



**ポイント [#pbeecb8c]
***htmlファイル群は圧縮できる。 [#h51e70ea]


***目次ファイル内で別の目次ファイルを指定できる [#vd9b9873]



**関連リンク [#cbfbb9c1]
-[[Eclipseのヘルプ・システムを使ってプロジェクトを文書化する:http://www-6.ibm.com/jp/developerworks/opensource/040326/j_os-echelp.html]]


----
この記事は
#vote(おもしろかった,そうでもない)

#comment
#topicpath


SIZE(10){現在のアクセス:&counter;}


トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS