標示元解析

識別碼: org.eclipse.ui.markerResolution

說明:這個延伸點用來建立標示元解析產生器和特定「類型」的標示元之間的關聯性(某一類型的標示元或有某種屬性值)。

從: 版次 2.0

配置標記:

   <!ELEMENT markerResolutionGenerator(attribute)*>
   <!ATTLIST markerResolutionGenerator
      class         CDATA #REQUIRED
      markerType    CDATA #OPTIONAL
   >

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

範例:

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

<extension point="org.eclipse.ui.markerResolution">
   <markerResolutionGenerator
      class="org.eclipse.ui.examples.readmetool.ReadmeMarkerResolutionGenerator"
      markerType="org.eclipse.ui.examples.readmetool.readmemarker">
         <attribute
            name="org.eclipse.ui.examples.readmetool.id"
            value= "1234">
         </attribute>
   </markerResolutionGenerator>
</extension>

在上面的範例中,標示元解析產生器與類型 org.eclipse.ui.examples.readmetool.readmemarker 的標示元相關聯,其 org.eclipse.ui.examples.readmetool.id 的屬性值為 1234。

API 資訊:提供不止一個標示元說明產生器至給定的標示元。

Copyright IBM Corporation and others 2000, 2002.