Editor window contextual menu
You can access many of the commands you need in the Editor window by right-clicking and choosing the command from the contextual menu. The following commands are available when you are editing a Java file:
- Show Javadoc - assuming that the proper Javadoc directory is mounted under the Javadoc tab of the Explorer, opens the web browser on the Javadoc documentation for the identifier that the insertion point is on (or immediately before or after).
- Go to Source - opens the source file for the the identifier that the insertion point is on (or immediately before or after) and moves the insertion point to the relevant section of code. For this command to work, the source file must be in a directory mounted in Filesystems, and the parser database must be updated for that source. See Adding your own classes to the parser database.
- Go to Declaration - moves the insertion point to the declaration for the method or field that the insertion point is on (or immediately before or after). For this command to work, the source file must be in a directory mounted in Filesystems, and the parser database must be updated for that source. See Adding your own classes to the parser database.
- Reformat code - regenerates the automatic code formatting for the current file (or for the selected text, if any text is selected).
- Save - saves the current source file.
- Compile - compiles the current source file.
- Execute - executes the current source file.
- Add/Remove Breakpoint - sets the current line as the breakpoint, or removes the breakpoint if the line is already a breakpoint.
- Add Watch... - opens the Add Watch dialog, enabling you to set a watch for debugging.
- Cut - removes the selected text from the file and pastes it to the clipboard.
- Copy - copies the selected text to the clipboard.
- Paste - pastes text from the clipboard to the insertion point in the file.
- Delete - deletes the selected text.
- New | Initializer - inserts a new initializer at the insertion point.
- New | Field.../Constructor.../Method.../Inner Class.../Inner Interface... - opens up a Customizer dialog enabling you to create a new class or element.
- Tools | Auto Comment... - opens the Javadoc Auto Comment Tool, which enables you to generate and modify Javadoc documentation for the classes in the source file.
- Tools | Set As Project Main Class - sets the current file as the project's main class.
- Tools | Add to Project - adds the current source file to the current project.
- Tools | Create Group... - creates a group object and adds the current source file to the group.
- Tools | Add To Component Palette... - adds the source file (preferably a JavaBeans component) to the Component Palette, from where you can use it in other applications.
- Customize - opens up the Customizer dialog box for the class or element that the insertion point is on. If the insertion point is not on an identifier that can be customized, the Customizer appears for the main class.
- Properties - opens a separate Properties window displaying the the property sheet for the source file or the class or class element that the insertion point is on.
Contents | Prev | Next | Index |