Project Card

Access

When you start Cosmo Code, you see the Projects card displaying all projects known to Cosmo Code.

Purpose

Features

Project Panel

The Project panel displays projects (Java applications, applets or packages) that have been created in or converted into Cosmo Code.

Double-click a project to open it. The name of the open project is displayed above the Source panel in Project field, and the project's files are displayed in the File panel.

Right-mouse-button Menu

Item Description
Open Opens the project, allowing you to browse, edit, and debug it.
Info... Opens a dialog that tells you the project type (applet, application, or package) and its path.
Delete Deletes the project. Deletes all project files from disk. If you created the directory containing the project within Cosmo Code, and the directory contains only project files, the directory is also deleted from disk.

File Panel

The File panel displays all the files contained in the project. If your project contains subdirectories, the files in the subdirectories are also displayed in the File panel.

Files can be viewed as icons, as a list, or as columns. To change the way files are displayed, use the View menu. For example, if you want to see the pathnames of files in the directory, choose View > As List.

Double-clicking on a file that is one of the file types in the table below launches an appropriate application for the file.

File Type Double-click Action
.vb Launches the visual builder.
.java Displays the file in the Source panel.
.html or .htm Launches the HTML editor that has been installed and set up for your desktop.
.au Launches the audio application that has been installed and set up for your desktop.
.snd Launches the audio application that has been installed and set up for your desktop.
.gif Launches the image-viewer/editor application that has been installed and set up for your desktop.
.jpg or .jpeg Launches the image-viewer/editor application that has been installed and set up for your desktop.

Right-mouse-button Menu

The right button menu of a selected file offers the following options:

Menu Item Description
Open Opens the file in the appropriate application.
Info... Opens a dialog that shows the pathname for the file and the file type.
Remove (from project) Removes the file from the project, but does not delete it from disk.

Project Files

.cosmo_projects
The .cosmo_projects file in your home directory contains information about the projects displayed on the Projects card. When you create a new project, the project is added to the .cosmo_projects file. When you start Cosmo Code, this file is used to display projects on the Projects card.
project_name.proj
Information about a specific project is stored in a project_name.proj file in the project directory you specify when creating the project. This file is updated when you add files to, or remove files from, the project. The project_name.proj file also contains information for compiling and running the project. Choose Project > Project Settings... to open the Project Settings dialog and modify compile and run settings for the project.
.jsuds directory
When you create a project, a class database is generated in a .jsuds directory in your project directory. Cosmo Code uses the class database when generating a class graph or collecting results to a query you have performed.

Guide to the Cosmo Code Development Environment
12-96*209