Home

 

Marking occurrences

When enabled, the editor highlights all occurrences of types, methods, constants, non-constant fields, local variables, expressions throwing a declared exception, method exits, methods implementing an interface, and targets of break and continue statements, depending on the current cursor position in the source code (Figure | -46). For better orientation in large files, all occurrences are marked with a white line on the right side of the code.

The feature can be enabled and disabled by pressing Alt+Shift+O, or by clicking in the toolbar. To configure mark occurrences, select Window Æ Preferences. In the Preferences dialog, select Java Æ Editor Æ Mark Occurrences.

Figure 8-46 Java Editor with mark occurrences (method exits)

ibm.com/redbooks