X

Geertjan's Blog

  • December 12, 2006

The "Browseable" Attribute in the Error Annotation DTD

Geertjan Wielenga
Product Manager
Today I learned something new about the error annotation DTD. If you define an annotation with the browseable annotation set to true (as shown below, in the highlighted line), then (and only then) the Jump to Next Error Action Module will work for your annotation.

<!DOCTYPE type PUBLIC
"-//NetBeans//DTD annotation type 1.1//EN"
"http://www.netbeans.org/dtds/annotation-type-1_1.dtd">
<type name="org-netbeans-modules-manifesterrorannotation"
description_key="LAB_Error"
localizing_bundle="org.netbeans.modules.manifesterrorannotation.Bundle"
visible="true"
glyph="nbresloc:/org/netbeans/modules/java/resources/error-glyph.gif"
waveunderline="#ff0000"
type="line"browseable="true"
severity="warning"
actions="some-action"
/>

What the module does is, it lets you jump (or, "browse") from annotation to annotation (and then back to the first one), using the Alt-Shift-N keybinding. That's possible by default for bookmarks, although not with that keybinding. Using the Alt-Shift-N keybinding, you will be able to browse to all annotations that have browseable set to true.

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.Captcha