Working with projects

To create a new project select Project | New.... A wizard will show up which will Guide you through the process of creating a project. This wizard will also show up when you start CodeGuide for the first time. You can either create a project from a template or an empty project by choosing the Existing sources item.

 

 

The wizard will create an XML based project file containing the project settings and create some project source files. Note that project sources and project files do not need to be stored in the same directory. Though they can be. You can store all your project files in one directory while storing the sources in other directories if you want to.

 

The current project file name will be displayed in the window titlebar of CodeGuide.

 

 

To close the current project select Project | Close. Afterwards CodeGuide will be in the no-project-mode. In this mode it is not possible to compile, run or debug and the code analysis will not work. However CodeGuide can be used as a text editor.

 

To open a project choose Project | Open or Project | Open recent> or double click on a project file in the file browser.

 

 

Project browser

The project browser displays all project directories and files and can be used to easily access files of your project. The source directories contain the source files of the project. All source files in a mounted directory as well as all source files in all sub directories will belong to the project. If a file is added to one of the project source directories it automatically belongs to the project. The project source files will be compiled by CodeGuide and are used for debugging and code completion. You can set a filter that defines which directories and files will be shown in the project browser. By default class files and version control system directories (named CVS and SCCS) are hidden.

 

 

Note that CodeGuide is package-aware. That means you also have to set the Project SOURCEPATH correctly. For example if you have a file "C:\JFCApp\mypackage\Test.java" added to your project which starts like this:

 

package mypackage;

 

public class Test

{

}

 

Then you have to add "C:\JFCApp" to the Project SOURCEPATH. This is similar to the behaviour of the CLASSPATH system variable of Java.

 

Refer to the Project Settings section for details.