CodeGuide supports working on different projects. When
you work with CodeGuide you always do this in the context of a current project. The name
of this project is displayed in the title bar. Projects are standalone configurations
between which you can switch easily. A project stores all files you have opened, the files
which belong to a project, the starting point of the project, the used JDK and the used
libraries as well as a couple of other things.
If you add a directory to a project all the
files and all the subdirectories in it will belong to the project. If files or directories
are added to the filesystem externally they also belong to the project. You can add as
many directories as necessary and you can remove directories whenever you want to.
Files in the top level directories of the project belong to the default package and thus must not have a package declaration. Files which are stored in a direct subdirectory of a top level project directory belong to the package whose name equals the name of the sub directory. Thus such files need a corresponding package declaration. You have to take this into account when you want to work on sources which have a package declaration. This works just like the original classpath concept of the JDKs. To create a new project select the Project > New menu item. It will popup a dialog where you can specify the kind of the project (Application, Applet, Servlet, etc.), the name of the project, the JDK you want to develop the project for and the directory where all the files which belong to the project will be stored.
If you want to migrate existing Java sources to CodeGuide you should create an empty project workspace and afterwards set it up manually or create another project and replace the created files. The second way is especially appropriate when you want to migrate an existing Servlet. To switch to another project select the Project > Choose menu item. A dialog will come up which allows you to select the project you want to switch to.
You can also create new projects in this dialog, change the settings of existing projects or delete old projects. There is also a function to duplicate a project. Please note that this does not duplicate any file which belong to the project. It is rather a project configuration duplication. There are a couple of special project settings. To alter them select the Project > Settings menu item which will open the project settings dialog.
General settings include the name of the project, some special options and whether the class files generated by the compiler should be stored in a separate directory.
The starting point settings of the project specifies the file executed when the project is executed or debugged. It is also necessary to specify the type of the starting point to start it properly. If the type is Applet the starting point must be an html file. Otherwise the starting point must be a java or class file. Optionally command line arguments can be specified which are passed to your application.
A project can be developed for any configured JDK. You can switch the JDK whenever you want to. The list of available JDKs can be altered in the application preferences dialog (see Configured JDKs).
A project can use any configured Java library. The list of available libraries can be altered in the application preferences dialog (see Configured libraries).
Copyright © 2000 Omnicore Software All trademarks referenced herein are property of their respective owners
|