您可以使用 org.eclipse.ui.propertyPages 延伸點來提供資源的內容頁面資料。 您可以使用資源導覽器檢視畫面中的內容功能表來呼叫資源的內容頁面。 當選取單一資源時,便可使用這個功能表。
Readme 工具提供兩個內容頁面資料。
<extension
point = "org.eclipse.ui.propertyPages">
<page
id="org.eclipse.ui.examples.readmetool.FilePage"
name="%PropertiesPage.filePage"
objectClass="org.eclipse.core.resources.IFile"
class="org.eclipse.ui.examples.readmetool.ReadmeFilePropertyPage"
nameFilter="*.readme">
</page>
<page
id="org.eclipse.ui.examples.readmetool.FilePage2"
name="%PropertiesPage.filePage2"
objectClass="org.eclipse.core.resources.IFile"
class="org.eclipse.ui.examples.readmetool.ReadmeFilePropertyPage2"
nameFilter="*.readme">
</page>
</extension>
這兩個頁面針對具有 .readme 副檔名,類型為 IFile 的物件提供資料。
內容頁面外觀很像喜好設定頁面,但內容頁面沒有階層或分類。在下面的對話框中,兩個 Readme 內容頁面出現在主要頁面清單中。
