當使用者搜尋產品的說明內容時,就會在文件索引內執行搜尋。
依預設,在第一次呼叫說明搜尋時,將建立這個索引,
但是可以預先建置並隨著產品一起送給使用者。
這會避免在使用者機器上編製索引,因而可讓使用者更快地取得第一個搜尋結果。
若要建置索引,請遵循下列步驟:
eclipse -nosplash -application org.eclipse.help.indexTool -vmargs -DindexOutput=outputDirectory -DindexLocale=locale。下列是需要設定的引數:
例如,執行
eclipse -nosplash -application org.eclipse.help.indexTool -vmargs -DindexOutput=d:/build/com.my.plugin -DindexLocale=en
將導致 doc_index.zip 檔儲存在將在 d:/build/com.my.plugin 下建立的 nl/en
目錄。zip 將含有當使用者在 en 語言環境中執行產品時,將可供他們使用之文件內容的索引。
com.my.plugin/
plugin.xml
nl/
de/
doc_index.zip
en/
doc_index.zip
這個外掛程式的其他檔案
org.eclipse.help/productIndex=com.my.plugin