TOC PREV NEXT INDEX DOC LIST MASTER INDEX




directory viewer (text)

When Apex visits a directory, it opens a directory-viewer window that displays a list of files and directories. The directory-viewer window is sometimes referred to simply as the directory viewer.

You can use the directory-viewer window to navigate through the UNIX directory structure, open files and directories, and view other files and directories.


directory viewer window (graphics)


Apex Panel (text and graphics)

The Apex Panel displays the version of Apex you are running:


Visit your home directory (text and small graphics)

1. . Type a tilde (~) in the Visit field

2. . Select the Visit button

:


home directory (graphics)

For the tut_user user, the directory viewer displays:


subsystem and view (text)

Apex supports the dividing of a software-development effort into high-level components called subsystems, each containing a group of logically related objects. Subsystems let you group related files together.

Every subsystem is associated with a set of views. Working views provide areas for the development and integration of software. Release views contain the products developed within a subsystem during the development process.

Note: In UNIX, a subsystem is a directory with a .ss filename extension and a view is a subdirectory with a .wrk or .rel extension. Because subsystems and views are directories in UNIX, their names are case-sensitive.

Before you can develop code, you need to:

1. . Create a subsystem.

2. . Create a Java view in the subsystem.



Create a subsystem

Create a subsystem named project2.ss:

1. . In your home directory viewer, choose the New command from the File menu (graphics).

Apex displays the New submenu (graphics) cascading menu.

2. . Choose the New Subsystem menu item from the New submenu (graphics).

Apex displays the New Subsystem dialog box (graphics).

3. . Fill out the dialog box:

4. . Select OK in the dialog box.

The Jobs window for create project2 subsystem (graphics) is displayed.

The Messages window for create java view (graphics) is displayed.

5. . Because Visit was selected, Apex opens a directory viewer (text) showing you the project2.ss (graphics) subsystem that was created.

6. . Select the Close command from the File menu in the project2.ss (graphics) directory viewer window because you are going to be using the view window from now on.



New Subsystem dialog box (graphics)


File menu (graphics)


New submenu (graphics)


Jobs window for create project2 subsystem (graphics)


Messages window for create project2 subsystem (graphics)


Create a Java view

Create a Java working view named java.wrk. The java.wrk view will be nested in the project2.ss (graphics) created in the Create a subsystem topic.

1. . Select the New command from the File menu (graphics) in the project2.ss directory viewer window.

Apex opens the New submenu (graphics) cascading menu.

2. . Select the New View menu item from the New submenu (graphics).

Apex displays the New View dialog box (graphics).

3. . Fill in the dialog box:

4. . Select OK in the filled out New View dialog box (graphics).

The Jobs window for create java view (graphics) is displayed.

The Messages window for create java view (graphics) is displayed.

Because Visit was selected, Apex opens a directory viewer (text) showing you that the working view named project2.ss/java.wrk (graphics) has been created in the project2.ss subsystem.



model corresponding to your architecture and version of Apex you are running.

The model name has the format:

/rational_dir/base/c++/model.ss/arch.apex_ver.java.rel

where

where apex_release is the full pathname to the current Apex release, arch is your computer architecture, and apex_ver is the current Apex version.

For example, for a Sun running Solaris running Apex version 3.02, the corresponding Java model is:


New View dialog box (graphics)


filled out New View dialog box (graphics)


alternatives icon

The Alternatives icon presents a list of possible values that you can choose from to replace the contents of the associated text field in a dialog box.

The Alternatives icon is:


Jobs window for create java view (graphics)


Messages window for create java view (graphics)


Jobs window for create project2 subsystem (graphics)


project2.ss (graphics)


project2.ss/java.wrk (graphics)


Create a Java file using the File:New:New Java command

1. . Select the File menu (graphics).

The New submenu (graphics) is displayed.

2. . Select the New Java command.

The New Java dialog box (graphics) is displayed.



New Java dialog box (graphics)


Java editor (graphics)


Compile menu (graphics)


Create an HTML file using the File:New:New HTML command

1. . Select the File menu (graphics).

The New submenu (graphics) is displayed.

2. . Select the New HTML command.

The New HTML dialog box (graphics) is displayed.



New HTML dialog box (graphics)


HTML editor (graphics)


Set the dialog box values to create the HTML file in the circle.html file.

1. . Enter the name circle in the Name field.

circle will be thename of the HTMLfile you are creating. It is not necessary to add any filename extensions.

2. . Verify the Visit It check box is selected.



Open the circle.html file in a Web browser

1. . In an xterm, bring up a Web browser

For example, to bring up Netscape, enter:

2. . Open the circle.html file

For example, using Netscape, select the File:Open File command and select your circle.html file in the Netscape file selector dialog box (graphics).



Netscape file selector dialog box (graphics)


Exit the Web browser

For example, if you are using Netscape, select the File:Exit command.


Set the dialog box values to create the java applet in the circle.java file.

1. . Enter the name circle in the Name field

circle will be the name of the Java file you are creating. It is not necessary to add any filename extensions.

2. . Verify the Visit It check box is selected.



Java editor window

The Java editor window is where you write, edit, compile, and link code. Files created by Apex contains a comment line identifying the file, along with a stub that is ready for you to fill in.

The display area of the java editor window for get_put.java looks like this:


Enter the java applet

1. . Use the java editor window containing the circle.java file.

2. . Position the text cursor after "project2;"

3. . Type return and then the following two lines:

4. . Type another return to add a blank line before the class statement.

5. . Select the "public class circle {" statement by triple-clicking on any word in the line.

6. . Type the text starting with



Select the Compile:Code command

From the Compile menu (graphics), select the Code command.

This command checks the code in this object for errors and if no errors are found, object code is generated in a .class file.


Jobs window for the code command (graphics)


Message window for the code command (graphics)


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2001, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS