File menu

The File menu contains commands for creating and opening projects, creating and opening files, closing and saving files and projects, printing files, and exiting JBuilder.

Choose one of the following commands for more information.



File|New

Opens the object gallery where you choose the type of file to create. Each icon in the object gallery displays a wizard to help you quickly create the project or file. Once created, the new project or file is displayed in the project pane.

See also



File|New Project

Displays the Project wizard, where you create a JBuilder project file and set paths and preferences for the project. You can optionally give your project a title and attach an author name and description to the project.

See also




File|New Class

Creates a new Java source file within a project using the Class wizard.



File|Open Project

Displays the Open dialog box where you browse and choose the name of an existing project to open. Only project files are visible in the Open dialog box. Opening a project displays the project and its files in the project pane.

You can open multiple files and projects in the same AppBrowser, but only one project at a time is active in the AppBrowser. To switch to another open project, select another project from the Window menu or from the drop-down list on the project toolbar. You can also open more than one AppBrowser at a time and work on different projects in each one.

See also



File|Open File

Displays the Open File dialog box where you can browse to a file. This dialog supports multiple selection.

Opening a file displays its contents in the content pane and its file structure in the structure pane.

Note: Opening a file doesn't add it to the current project. Use the Add Files/Packages button on the project toolbar to add it to your project, then you can open it by double-clicking it in the project pane.



File|Reopen

Displays a submenu of previously opened projects and files. Projects are grouped at the top of the list and files at the bottom. Select the project or file you want to reopen from the list. You can also clear the project and file history lists.

File|Reopen|Clear Project History

Empties the list of previously opened projects.

File|Reopen|Clear File History

Empties the list of previously opened files.



Compare Files

This is a feature of JBuilder Enterprise.

Lets you compare two files next to each other or in diff mode.

Uses two initial dialog boxes:

  1. Select Old File dialog box: select the file you want to compare from.
  2. Select New File dialog box: select the file you want to compare to.

Once you've selected two files to compare, the Compare Files dialog box opens. It has two pages: Source View, which displays the files side by side, and Diff View, which merges the two files and highlights where the text is different. Right-click a file in Source view to reload or save it.



File|Close Projects

Displays the Close Projects dialog box. Select any projects you want to close and click OK.

Before closing any changed files, JBuilder prompts you to save changes. Check the files you want to save and click OK.



File|Close

Closes the file currently selected in the content pane.

Before closing any changed files, JBuilder prompts you to save changes. Check the files you want to save and click OK.



File|Close All Except

Closes all the files except the file currently selected in the content pane.

Before closing any changed files, JBuilder prompts you to save changes. Check the files you want to save and click OK.



File|Close ...

Displays the Close dialog box. Select any files you want to close and click OK.

Before closing any changed files, JBuilder prompts you to save changes. Check the files you want to save and click OK.



File|Revert

Reverts to the prior saved version of the file. There must be an adequate backup level to support the reversion. Set backup levels in Tools|Editor Options on the Editor page.



File|Save Project

Saves the current project and all files in that project.



File|Save Project As

Displays the Save dialog box where you can save the current project and all files in that project. You may specify a new name in the File Name field and browse to a new location for the project. This command leaves the original project unsaved and in the same place.



File|Save

Stores changes made to the active file using the current name. The date/time stamp indicates the time of last edit, not the time of last save.



File|Save As

Opens a Save As dialog box where you can enter a new name for the file or save the existing file to a new directory. You can also set options to remove, delete, add file to project, or open saved file after saving.



File|Save All

Saves all open projects and files, using the current names.

See also



File|Rename

Opens the Rename dialog box where you enter a new name and/or location for the file.



File|Page Layout

Opens the Page Layout dialog box where printing options can be set for the Java class or source file.



File|Print

Prints the selected source file.



File|Exit

Closes any open projects and files and then closes JBuilder. If you exit JBuilder before saving your changes, JBuilder prompts you to save them. It is recommended that you use File|Save All before exiting.