[Contents] [Prev. Chapter] [Next Section] [Next Chapter] [Index] [Help]

2    Preparing to Use FUSE

This chapter explains how to:


[Contents] [Prev. Chapter] [Next Section] [Next Chapter] [Index] [Help]

2.1    Starting FUSE

You can start the FUSE environment in several ways:

If you are using a monochrome display, make sure you change your .Xdefaults file, as described in Section Section E.4, before starting FUSE.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.1.1    Use the Command Line

Your current working directory becomes the working directory for each tool that you invoke. You must have write access to the working directory. If not, you are prompted to enter a new working directory.

You do not have to start FUSE from the directory where your program files are located, because you can change the working directory for any project if the project has no tools running in it.

To start FUSE, use the following command line:

% fuse [-proj project_filename]

By default, if you have a single.proj project file in your working directory, FUSE automatically loads this file when you start FUSE. In the above command line, you can use the -proj option to specify a project file you may have saved in another directory or with another name (Section Section 9.5 has more information on project files). If you don't specify a project filename, FUSE brings up a file selection box to let you choose from among the list of project files in the directory. If there is no project file, FUSE starts using the unnamed project.

You can start FUSE without loading an existing project file using the following command:

% fuse -noproj

When you start FUSE, the Control Panel appears. You can start all other FUSE tools from the Control Panel.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.1.2    Use the FUSE Icon from CDE

FUSE provides a FUSE application group icon and icons for the individual tools that make up the FUSE environment.

To invoke FUSE:

  1. Click on the Application Manager icon in the CDE front panel to display the icons in the application group.

  2. Double click on the FUSE icon to start FUSE. The FUSE Control Panel is started in iconized form. If there is a single project file in your home directory, FUSE will use that project. If there is more than one project file in your home directory, FUSE will prompt you for the project to open.

You can also start FUSE with a specific project by dragging the project icon and dropping it on the FUSE icon.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.1.3    Running More Than One FUSE Session

FUSE identifies each FUSE session according to system and login name; therefore, only one FUSE session can run on each system for each login name by default. If you attempt to start FUSE while you are running another FUSE session, you receive the following error message:

fuse: msg/c: fatal: FUSE already running.

If you see this message, make sure you do not have the windows of another FUSE session in icon form. If your current login name is available to other users, make sure another user is not using that login name to run FUSE. You cannot start another session with the login name until you exit from the first FUSE session.

You can run multiple FUSE sessions, however, if you set the environment variable FUSE_TMP to a different directory before you start each additional FUSE session. By default, FUSE sessions are set to the directory /usr/tmp.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.2    Exiting from FUSE

To exit from FUSE, choose Tools: Exit FUSE from the Control Panel.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.3    Starting FUSE Tools

You can start individual FUSE tools in several ways:


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.3.1    Use the Command Line

You can start any of the FUSE tools (with the exception of the Message Monitor) from the command line using a command of the form:

% fusetool [args]

See Appendix D and the specific reference pages for the command syntax and options.

If the Control Panel is not running, it starts automatically as a minimized icon. If FUSE is already running, the tool starts in the current project, thereby inheriting the project data (that is, working directory, target, data directory, and so on). Tools invoked from the command line do not use the global environment as stored in the Control Panel.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.3.2    Use the FUSE Tool Icons from CDE

For information, see the online Help topic Invoking FUSE Tools Using CDE.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.3.3    Use the FUSE Control Panel

To start a FUSE tool:

  1. Select the tool from the Tools menu in the Control Panel.

    FUSE adds the tool to the Control Panel display area under the current project. Then the tool main window appears. Some tools might require additional information not already specified as part of the project settings. For example, the Code Manager needs to have its library pathnames specified. You can use the Project Manager dialog box to do this after being prompted by an informational dialog box.

  2. For tools that display the Project Manager dialog box, complete the dialog box and click on OK to begin using the tool.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.3.4    Use the Tools Menu from Most FUSE Tools

Most FUSE tools have a Tools menu. To start a tool, select the appropriate tool from the Tools menu.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.4    Setting Up a Project

When you start a tool from the command line, the command lets you specify the same information that would otherwise be detailed in the Project Manager dialog box. (See Appendix D for command syntax.)

When you start a tool using the Control Panel, the tool inherits the project settings. To specify project settings, choose Projects: Show/Modify... from the Control Panel. When you save the project, you can later retrieve the settings to recover your working context quickly by opening the project and selecting it in the Control Panel.

The Project Manager dialog box has entry fields for a working directory and a target as well as other project settings that are optional for many tools. A working directory is the directory where the tool will write output files or look for input files. A target is a file that serves as the object of the tool's operations. For tools to interoperate, they must have the same target and be in the same project. See Section Section 9.4 for more information on creating and using projects.

Figure Figure 2-1 shows the Project Manager dialog box.

Figure 2-1:  Project Manager Dialog Box

At tool startup, you must complete all required entries in the Project Manager dialog box before you can work with the tool's main window. If you cancel the Project Manager dialog box at tool startup, you will exit from the tool. In many cases, the Project Manager dialog box does not appear because project settings are already available for the tool.

Additional information on configuring tools is provided in the chapters in the FUSE Tools part of this book.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.5    Exiting from a Tool

Table Table 2-1 summarizes the methods for exiting from a tool.

Table 2-1:  Exiting from a Tool

When you want to exit from... Use this method...
The tool you are currently working with Choose Exit Tool from the tool's Tools menu.
A tool whose window is currently hidden or in icon form, several tools at the same time, all tools in a project. Select one or more entries displayed in the current project tools list and choose Stop Tools from the Actions menu (or press MB3 in the Control Panel to use the pop-up menu). You can also close the current project including its tools by choosing Projects: Close.
All tools and terminate your FUSE session Choose Exit FUSE from the Control Panel's Projects menu.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.6    Getting Help on FUSE and FUSE Tools

FUSE provides an extensive online Help library, which is accessible from the Help menu in all tools. In addition, the FUSE software kit includes online Training, which is accessible from the Training menu in the Control Panel and from the Help menu in other tools. Table Table 2-2 summarizes the Training and Help available on-line and how to access it.

Table 2-2:  Online Help and Training Available in FUSE

Description Access from
Detailed information on specific objects or areas of a main window or dialog box Help: On Context (main window); Help button (dialog box)
Instructions for performing programming tasks using a specific tool Help: On "Tool"
Information on how to use menu items Help: On Menus
Top-level table of contents for Help library Help: On FUSE
Software version information Help: On Version
Help on diagnostic messages in Builder Buffer: Help on Diagnostic
Instructions for using the Help viewer Help: How to Use Help (in the Viewer window)
An interactive demonstration of fundamental FUSE features Help: Getting Started with FUSE; Training: FUSE Tutorials (Control Panel only)
Hands-on exercises for obtaining skills to make productive use of FUSE tools Help: FUSE Tutorials; Training: FUSE Tutorials (Control Panel only)
Corrective action for error messages displayed in a message box Help button in the message box

After you start a tool, use the tool's online Help and tutorials to learn about using the tool's main window, its menus, and its dialog boxes. If you are a first-time user, use the Getting Started With FUSE topic in the Help menu to get an introduction to FUSE and using FUSE tools.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.6.1    Help on Screen Objects and Dialog Boxes

Choose On Context from the Help menu to display item-specific information. When you choose On Context, the pointer changes to a question mark. You can move the question mark to a screen object (such as a button on a dialog box or a menu on a main window) and press MB1 to display help information.

The object on which you click can be in any FUSE window or dialog box, except in modal dialog boxes, which prevent interaction with other parts of the application until you address them.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.6.2    Help on Programming Tasks and Reference Information

From a tool's main window, choose On Tool from the Help menu, where Tool is the name of the tool you are currently using. The Help viewer presents a list of task-oriented topics and provides access to information on the tool's main window and menus.

You can choose On Menus from the Help menu to go directly to information on a tool's menus and menu items.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.6.3    Access to FUSE Tutorials

From a tool's main window, choose FUSE Tutorials from the Help menu. These online exercises allow you to practice fundamental FUSE skills in the context of solving a case study programming project.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.6.4    Help on Dialog and Error Boxes

In each dialog and error box, click on the Help button to get information about using that dialog or error box.

For error boxes, help information provides a description of how the error may have occurred and actions you can take to correct the error.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.7    Using Main Windows

This section contains information that is specific to the windows of FUSE tools.

Figure Figure 2-2 shows the components that the main window of a FUSE tool can include. None of the FUSE tool windows looks exactly like the figure; for example, a tool might have multiple display areas and one or more sashes, or one display area with a toggle button.

Figure 2-2:  Elements of a Tool Main Window

Table Table 2-3 describes the window elements.

Table 2-3:  Descriptions of the Parts of Tool Windows

Window Element Description
Title bar Displays the name of the tool and its number.
Menu bar Every FUSE tool provides a bar group of pull-down menus that you use to perform the operations that are available in the tool. In addition, you can press MB3 to pop up a menu of a subset of the items available from the menus on the menu bar. The items in the pop-up menu are the most frequently executed tasks in the tool.
Configuration area Displays the project in which a tool is running and the tool's configuration.
Display and transcript areas A large central area for editing files or working with a graph, command line, areas, or listing. Some tools let you work with two kinds of displays, typically a graph and a transcript. When tools have more than one display area, a sash on each area allows you to adjust the space for each display.
Push buttons For many FUSE tools, a row of push buttons is provided so that you can execute a tool operation without having to use a menu. For example, in the Code Manager, you can click on push buttons to display and remove file information from the library graph; in the Debugger, you can click on push buttons to execute debugging commands. Choose Help: On Context and click on a push button to get information about that push button.
Information area An area at the bottom where informational messages appear. These messages are not warnings or errors and therefore do not require a dialog box for your acknowledgment. The information area can also display quick-reference information for menu items. To display descriptions of a menu item or graph object in the information area, press and hold MB1while the pointer is over the item or graph object. For the Builder and the Call Graph Browser (and the optional C++ Class Browser), summary information is also displayed for nodes or lines that you highlight on a graph.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.8    Copying and Using the FUSE Example Programs

Examples in the FUSE documentation and online training refer to example programs provided with the FUSE software:

You can copy these example programs into the directory ~/fuse-examples, which is a fixed directory name assigned by FUSE for this purpose. You can overwrite the contents of ~/fuse-examples at any time to start with a fresh copy of the example programs.

Table Table 2-4 shows how to copy the example programs.

Table 2-4:  Steps to Copy Example Programs

Step Action
1 Start FUSE. In the Control Panel, choose Examples from the Training menu. A message box is displayed saying that the FUSE examples will be copied into ~/fuse-examples.
2 Click on OK in the message box.
3 If ~/fuse-examples already exists, FUSE displays a message saying that ~/fuse-examples and its subdirectories will be deleted. If you want to proceed with the operation, click on OK. To cancel the operation and retain the current files in ~/fuse-examples. click on Cancel.
4 After the files have been copied into ~/fuse-examples, FUSE displays a message asking whether you want the projects to be added to your current FUSE session. Click on OK if you want the projects to be added to your current session. Otherwise, click on Cancel.

You can start a future FUSE session with the new example project count.proj by entering the following command:

% fuse -proj ~/fuse-examples/count/count.proj

In the case of the C++ Class Browser, use the following command:

% fuse -proj ~/fuse-examples/animal_sayings/animal_sayings.proj


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.9    Enhancing Your FUSE Environment Using CDE

The Common Desktop Environment (CDE) provides a variety of features that you can use to advantage when running FUSE. These include the following capabilities:

Refer to your operating system documentation on CDE for more information on how to use specific CDE features.


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.9.1    Organizing Your Work Context

CDE provides two features to help you organize your work context:


[Contents] [Prev. Chapter] [Prev. Section] [Next Section] [Next Chapter] [Index] [Help]

2.9.2    Customizing Colors and Fonts

The CDE Style Manager lets you customize the appearance of FUSE, specifically the choice of color palette and fonts. Changes made using the Style Manager affect all FUSE tools dynamically; that is, you do not need to exit and restart the tool. You can use the Options menu in the FUSE Control Panel or individual tools to override CDE settings and to restore the CDE default color or font settings.


[Contents] [Prev. Chapter] [Prev. Section] [Next Chapter] [Index] [Help]

2.9.3    Invoking Actions of Files

CDE actions provide ways for you to execute commands on datatypes (typically by acting on files). FUSE provides several actions that complement the default set of actions provided by CDE.

To invoke FUSE actions, you need to display files in the File Manager, as shown in Table Table 2-5.

Table 2-5:  Displaying Files in the File Manager

Step Action
1 Click on the File Manager icon in the CDE Front Panel to start the File Manager.
2 Click on a directory to display its files.

There are two ways to invoke FUSE actions at this point:

Table Table 2-6 describes the actions that exist for the files that correspond to specific datatypes.

Table 2-6:  CDE Actions on Specific Datatypes

Action Datatype Description
Open C_SRC CPLUSPLUS_SRC H_SRC FORTRAN_SRC FUSE_PROJECT ADA_SRC PASCAL_SRC COBOL_SRC MAKEFILE UIL_SRC TIL_SRC ASSEMBLER FUSEPV_DATA

Displays the selected file using a FUSE editor. This is the default action for these datatypes.

For information on setting a default editor for use within CDE, refer to the Setting a FUSE Editor for Use with CDE topic in the online Help.

A saved Program Visualizer data file (FUSEPV_DATA) is loaded into the Program Visualizer.

A project file (*.proj) invokes FUSE and makes the given project current.

Compile C_SRC CPLUSPLUS_SRC FORTRAN_SRC ADA_SRC PASCAL_SRC COBOL_SRC UIL_SRC TIL_SRC Builds the .o file corresponding to the selected file using the Builder.
Build EXECUTABLE OBJECT ARCH_LIB

Builds the selected file using the Builder.

Check-in Check-out Cancel-lock Same datatypes as Open action

Uses the Code Manager or Version Controller to perform the operation on the selected file.

Make target

EXECUTABLE

Builds the target you specify (dialog box appears) by invoking the Builder.


[Contents] [Prev. Chapter] [Prev. Section] [Next Chapter] [Index] [Help]