标记解决方案

标识符: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.