Rational Software Corp.

TOC PREV NEXT INDEX



Framework Wizard Add-In


Contents

This chapter is organized as follows:


Overview

The Framework Wizard Add-In provides a library of frameworks that can be used as templates when creating new models. If the Framework Wizard Add-In is active, the File > New command in Rational Rose displays a dialog box from which you can choose one of the available frameworks. By choosing an appropriate framework when you create a new model, the model is automatically initialized with a predefined architecture and a set of reusable model elements. This way, you can focus your modeling efforts on the parts that are unique to your system, instead of reinventing the wheel.

The Framework Wizard Add-In also provides a wizard to help you add additional frameworks. The Wizard is started by opening the Make New Framework framework.

Note: The Framework Wizard Add-In is only available on Windows and only in some Rational Rose editions. Also, in order to create models from frameworks and add new frameworks, the Framework Wizard Add-In must be active (refer to Activating the Framework Wizard Add-In).


Activating the Framework Wizard Add-In

In order to create models from frameworks and add new frameworks, the Framework Wizard Add-In must be active. It is active if the File > New command in Rational Rose displays a Create New Model dialog box. If the File > New command just opens a new empty model, the Framework Wizard Add-In is not active.

To install the Framework Wizard Add-In:

1 Run the Rational Rose setup program.

2 Select a custom install, and select the Rose Framework Add-In feature. If the Framework Wizard Add-In feature is not present, the add-in is not available in your Rational Rose edition.

To activate the Framework Wizard Add-In:

1 Click Add-Ins > Add-In Manager in Rational Rose.

2 Select the Framework Wizard option and click OK. If the option is not present, the Framework Wizard Add-In is not installed.


Creating a New Model from a Framework

To create a new model from a framework

1 Click File > New.

    The Create New Model dialog box opens.

Figure 98 Create New Model Dialog Box

2 Open the framework that corresponds to the system you are going to develop.

    A new model is created and initialized with the contents of the chosen framework. (If you don't want to use any of the frameworks, click Cancel. A new model with only the default contents is created.)

3 Save the new model and give it a name by clicking File > Save As.

    Each package in a framework is stored as a controlled unit in a separate file. To access the contents of a package in a framework, you have to load the corresponding controlled unit. To load a unit, double-click the package in a diagram, or click File > Units > Load.


Creating and Deleting Frameworks

Rational Rose provides you with a Framework Wizard that helps you create a new framework and add it to the framework library. To use the Framework Wizard, the Framework Wizard Add-In must be installed and activated (refer to Activating the Framework Wizard Add-In).

The Framework Library

The Framework Wizard Add-In provides a library of predefined frameworks. The frameworks are located in the \Framework\Frameworks folder in your Rational Rose installation folder. When creating a new model, you can choose to create the model from one of the listed frameworks. The set of available frameworks is displayed with the File > New command.

In the framework library, all files that work together to define a specific framework are located in a folder with the same name as the framework. Each framework is defined by the following files:

Creating a New Framework

To create a new framework:

1 Create and save a model with the contents of the framework in any folder. That model will be used as the template when creating new models from this framework.

2 Write a description of the framework in any word processor and save the document in RTF (Rich Text Format) format in any folder.

3 Use a drawing tool to create an icon that symbolizes the new framework. Save the icon as an .ico file in any folder (or, look for a suitable existing .ico file).

4 Click File > New.

    The Create New Model dialog box opens.

5 Open the "Make New Framework" framework, which starts the Framework Wizard. (If the welcome page appears, click Next.)

Figure 99 Framework Wizard Specification Page

)

6 In the Framework Name field, specify the name of the new framework. The name must be unique among the existing frameworks, and it can only contain characters that are allowed in folder names.

7 In the Model File field, specify the name and location of the file that constitutes the framework model. (To browse to the file, click in the field. Then, click the displayed button.)

8 Click in the Start Diagram field to specify a diagram that is to be initially opened for models created from this framework. The specified model opens. Click the arrow to the right of the Start Diagram field and select one of the diagrams.

9 Specify the name and location of the documentation and icon files in the Documentation File and Icon File fields. (To browse to a file, click in the field. Then click the displayed button.)

10 Click Next.

    A summary of the new framework appears.

Figure 100 Framework Wizard Summary Page

11 If you are satisfied with the framework specification, click Finish. Otherwise, go back and change your settings.

    When the Framework Wizard is finished, a folder with the same name as the new framework, containing the specified files, will be created in the \Framework\Frameworks folder. The new framework is now available for creating new models.

Changing or Deleting a Framework

To change the contents of a framework model, its icon, its description, or the initial diagram to be opened, update the appropriate file in the framework's folder.

To delete a framework, delete its folder from the \Framework\Frameworks folder.


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