Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Mastering UML with Rational Rose 2002.pdf
Скачиваний:
137
Добавлен:
02.05.2014
Размер:
9.68 Mб
Скачать

Chapter 12: Introduction to Code Generation and Reverse Engineering Using Rational Rose

Deleting Property Sets

If you no longer need a cloned property set, you can remove it from the model through the Tools → Options window. Select the tab for the appropriate language and then select the cloned property set in the Set drop−down list box.

Once you've selected the appropriate set, select the Remove button. Rose will remove that property set from the model. Note that you cannot remove the default property set. Once you remove a property set, you can no longer generate code for an item using that property set. When viewing the item's specification, you will see the cloned property set in parentheses, which indicates that the property set has been deleted or is not loaded. To generate code for the item, assign a different property set to it.

Step Five: Select a Class, Component, or Package

When generating code, you can generate a class at a time, a component at a time, or an entire package at a time. Code can be generated from a diagram or from the browser. If you generate code from a package, you can select either a Logical View package on a Class diagram or a Component View package on a Component diagram. If you select a Logical View package, all of the classes in that package will be generated. If you select a Component View package, all of the components in that package will be generated.

You can also generate code for a number of classes, components, or packages at once. On a diagram, use the Ctrl key to select the classes, components, or packages you want to generate code for, then select the appropriate code−generation command from the menu.

Step Six: Generate Code

If you have Rose Professional or Enterprise installed, you will have some language−specific menu options available on the Tools menu, as shown in Figure 12.2.

409