標示元說明

識別碼:org.eclipse.ui.markerHelp

說明:這個延伸點用來建立說明文字內容 ID 和特定「類型」的標示元之間的關聯性(某一類型的標示元或有某種屬性值)。

從: 版次 2.0

配置標記:

   <!ELEMENT markerHelp (attribute)*>
   <!ATTLIST markerHelp
      markerType       CDATA #OPTIONAL
      helpContextId    CDATA #REQUIRED
   >

   <!ELEMENT attribute EMPTY>
   <!ATTLIST attribute
      name         CDATA #REQUIRED
      value        CDATA #REQUIRED
   > 範例:

下列是標示元說明延伸項目的範例(請注意子元素和屬性使用的方式):

<extension point="org.eclipse.ui.markerHelp">
   <markerHelp
      markerType="org.eclipse.ui.examples.readmetool.readmemarker"
      helpContextId="org.eclipse.ui.examples.readmetool.marker_example1_context">
      <attribute
         name="org.eclipse.ui.examples.readmetool.id"
         value= "1234">
      </attribute>
   </markerHelp>
</extension>

在上面的範例中,說明內容 ID 與 org.eclipse.ui.examples.readmetool.readmemarker 類型的標示元相關聯,其 org.eclipse.ui.examples.readmetool.id 的屬性值為 1234。

API 資訊:開發人員要確定特定標示元只有單一說明文字 ID。如果提供二或多個說明文字內容 ID 至給定類型的標示元,工作台將未定義傳回的訊息。然而,工作台定義一律將「最特定的」文字內容 ID 傳回至給定的標示元。也就是,會先傳回與三個屬性值關聯的文字內容 ID,然後傳回兩個屬性值關聯的文字內容 ID。

Copyright IBM Corporation and others 2000, 2002.