You can use shortcuts in the Source Editor to jump to a particular line number in any type of file. For Java files, you can also go to a source file, declaration statement, or Javadoc documentation based on the location of the insertion point.
To jump to a line:
The Go to Line dialog box is displayed.
If the dialog box does not close when you click the Goto button, the specified line number is not in the current file. Specify a smaller line number.
To go to the Java source for the identifier the insertion point is on:
The source file is opened and the insertion point is moved to the relevant section of code. If the insertion point is on a package statement, Alt-O opens a new Filesystems window for that filesystem.
For this shortcut to work, the source file must be included in the code completion database. By default, all filesystems mounted in the Filesystems window are included in the code completion database.
To jump to the declaration for the Java method or field the insertion point is on:
The source file for the method or field must be in a directory mounted in Filesystems, and the code completion database must be updated for that source.
To display Javadoc documentation for the entity the insertion point is on:
The appropriate Javadoc filesystem must be mounted in the Javadoc Manager and the parser database must be updated for your source file.
If there are multiple matching methods that vary only in their signature, the Javadoc documentation that is displayed depends on the location of the insertion point:
![]() |
If the code completion box is displayed at the time you type Alt-O, Alt-G, or Alt-F1,
the resulting action is based on the selection in the completion box.
If a package is selected in the completion box, Alt-O opens the package in the Filesystems window and Alt-F1 opens the Javadoc for the whole package. |
See Also | |
---|---|
Opening a Java File With "Go To Class"
Mounting the Java 2 SDK Code Completion Database Searching Javadoc Documentation Using the Jump List Code Navigation Tips |