![]() |
![]() |
![]() |
The Problems page ("All Problems" in the Workbench) lists all compiler errors in program elements displayed in the browser.
If you are browsing a package, for example, and there are errors in other packages, they are not listed on this page; you must browse the program elements that contain the errors, or go to the All Problems page in the Workbench to see them.
Problems Pane
The title bar of the Problems pane shows the number of problems in the browser's
program elements. It also contains Next Problem and Previous Problem
buttons, which help you move
through the list.
The problems pane has two columns: Element and Error Message. The Element
column shows an expandable tree view of program elements that contain problems.
Program elements whose code contains a problem are indicated by a red error symbol . Program elements that
simply contain other elements whose code has errors are indicated by a gray error symbol
.
The Error Message column shows the compiler error message for program elements whose code contains errors. If a message extends beyond the margin of the page, hold the mouse pointer over the message text for aproximately a second, and a pop-up message will show the rest.
Comment or Source Pane
If you select a program element in the Problems pane, the Comment or Source pane
displays its comment text (for projects or packages) or source code (for classes,
interfaces, and methods). This pane is fully editable, so you can fix problems and
save the changes right in this page. Code assist is available by typing
Ctrl+Spacebar.
When you select a program element that contains an error, the code fragment that contains the error (or as close as the compiler can determine), is highlighted in the Source pane.
Menus
The Problems page contains the following menus:
Finding and Fixing Problems
Writing and Formatting Source Code