标记注释规范

org.eclipse.ui.editors.markerAnnotationSpecification

3.0(原来命名为 org.eclipse.ui.workbench.texteditor.markerAnnotationSpecification)

此扩展点用来定义标记的表示属性。可使用 org.eclipse.ui.texteditor.MarkerAnnotationPreferences 来访问为此扩展点提供的扩展。使用 org.eclipse.ui.texteditor.AnnotationPreferenceLookup 来获取给定注释的注释首选项。

注意,仅当 MarkerAnnotationPreferences.getAnnotationPreferences 包含下列四个属性(除必需的 annotationType 之外)时,才会从中返回扩展(并因此包括在首选项页面中):

扩展另一注释首选项的注释首选项类型被允许覆盖父代首选项规范中已经定义的属性,但不能从首选项页面中访问这些属性。

<!ELEMENT extension (specification)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT specification EMPTY>

<!ATTLIST specification

annotationType                         CDATA #REQUIRED

colorPreferenceKey                     CDATA #IMPLIED

overviewRulerPreferenceKey             CDATA #IMPLIED

verticalRulerPreferenceKey             CDATA #IMPLIED

textPreferenceKey                      CDATA #IMPLIED

label                                  CDATA #IMPLIED

highlightPreferenceKey                 CDATA #IMPLIED

colorPreferenceValue                   CDATA #IMPLIED

presentationLayer                      CDATA #IMPLIED

overviewRulerPreferenceValue           (true | false)

verticalRulerPreferenceValue           (true | false)

textPreferenceValue                    (true | false)

highlightPreferenceValue               (true | false)

contributesToHeader                    (true | false)

showInNextPrevDropdownToolbarActionKey CDATA #IMPLIED

showInNextPrevDropdownToolbarAction    (true | false)

isGoToNextNavigationTargetKey          CDATA #IMPLIED

isGoToNextNavigationTarget             (true | false)

isGoToPreviousNavigationTargetKey      CDATA #IMPLIED

isGoToPreviousNavigationTarget         (true | false)

icon                                   CDATA #IMPLIED

symbolicIcon                           (error|warning|info|task|bookmark)

annotationImageProvider                CDATA #IMPLIED

textStylePreferenceKey                 CDATA #IMPLIED

textStylePreferenceValue               (SQUIGGLES|BOX|UNDERLINE|IBEAM|NONE)

includeOnPreferencePage                (true | false) "true">