完成外掛程式處理

在這個範例中,首先我們建立外掛程式和文件檔。 接下來我們建立 topic 檔來說明內容的結構和導覽。 然後移到內容的上一層來佈線和整合書籍。

唯一剩餘的一件工作是更新 plugin.xml 來實際提供我們已建立的 action 、topics 和 infoset 檔案。 開始時先更新 plugin.xml 來提供 infoset:

<extension point="org.eclipse.help.contributions">
    <infoset name="infoset_SampleGuide.xml" />
</extension>

接下來我們提供最上層 topics 以及將它們佈線到 infoset 的 actions 檔:

<extension point="org.eclipse.help.contributions">
    <topics name="topics_view_Contents.xml" />
    <actions name="actions_view_Contents.xml" />
</extension>

最後我們提供大部分 topics 並包括它們:

<extension point="org.eclipse.help.contributions">
    <topics name="topics_Concepts.xml" />
    <topics name="topics_Tasks.xml" />
    <topics name="topics_Ref.xml />
    <actions name="actions_All.xml" />
</extension>

沒錯。如果複製外掛程式目錄到平台的 plugins 目錄,啟動平台,選取 說明->說明內容,您應該會在 "Contents" infoview 看到下 列內容: