Project Tab…

Index


This tab has undergone significant changes lately. Project tab now displays all the projects that have been opened in Kawa so far.

There are 3 methods to add projects to project tab. Select Project/Open to open the project and the new project will be added to the project tree and opened. The other method is to select Project/New and create a new project. This project is added to the project tab and opened. The last method is to right click on root Projects item and select Add Project to add a project to the project tree.

Opening a project is as simple as right clicking on the project name and selecting Open. Open project is indicated by bold font and is always at the top of the list. The remaining projects are arranged alphabetically in the tree. There can be only one project open at any given time. All the Project menu options from the main menu are applied to the currently open project.

Class View -

Project tree can display either file view of the project or the class view of the project. File view is always the default view of the project. Class view will display all the packages in the project and the classes under each package. In the figure below the project AWTTest has a package called AWTTest.Test and this package ahas all the classes and interfaces shown in the figure.

Selecting Project/File View or Project/Class view will toggle the view. Right clicking on the root Kawa Projects item can also access this menu option. Selecting class view will toggle the view for all the projects in the tree not just the open project.

Following are the various tree items in the Project tree and their context menus.

Project Item -

Double clicking on a file name under a project will display the file in the editor.

Expanding the file folder with the + button next to the file name will parse the file automatically and display all the classes and interfaces defined in the file.

Expanding the class item will display all the methods and variables defined in that class. Double clicking on the class name, method name or the variable name will open the file if necessary and select the appropriate line where it is defined.

Files can be rearranged in the project tree by dragging and dropping the files in the appropriate position. This is helpful when doing Rebuild All as the compilation order is determined by the order in which files are displayed in the Project tree.

Project context menu or right button menu options are self-explanatory. Add Folder options will add a new virtual folder to the project.

Add Directory will add an entire directory structure to the project. This command will scan the directory for all the java files and add the entire directory to the project maintaining the directory hierarchy. Extremely useful command when importing files from other editors.

Import Kawa project will import an existing Kawa project along with all the virtual folders and files.

Close will close the project if it is open.

Update images will scan all the project files and update the file and folder dirty indicator. Please refer to How to identify dirty files for more details.

Compiler, Interpreter and Javadoc options will display the appropriate dialog box for setting the various options for this project.

Any custom commands defined for a project menu item will be listed at the end of this menu. There is a limit of only 10 custom commands that will be added to the project item right button menu.

Project Virtual Folder Item -

Project virtual folder is a virtual folder as the name implies. It allows grouping of project files into folders. Folders can have folders and so on. The context menu for the folder is the same as the Project Folder menu explained above except any addition of files will be added to this virtual folder.

Moving files into or out of the folder is a matter of dragging file into or out of the folder.

Project virtual folder when closed has a check mark or a cross mark to indicate if the folder has dirty files which needs to be compiled.

Please refer to Rebuild commands for more details on the rebuild folder command and compile *.java folder command.

File Item -

File menu items are self-explanatory.

Class Item -