xxx4

Step 5. Control the custom units.
68 Engineer Component
a. Point out that there are OOTB packages in the com directory, e.g., com.ptc. Therefore com should not be controlled; com.customer should be controlled. Nested packages under com.customer could be controlled, as well.
b. In Rational Rose, right-click on a package in the browser window and select Units > Control… > customer .
c. Select the filename for the controlled unit.
d. Now, all changes anywhere under the controlled package will be stored in the *.cat file just specified.
1. Store the controlled unit with the same name as the package and locate it in the same directory relative to src. For example, the sub-unit file for the customer.doc package will be stored in the WT_HOME/src/com/customer/doc/doc.cat.
2. It’s up to the development team to identify the appropriate
number and name of packages required, and which packages will be controlled.
Step 6. Add existing classes that will be extended.
a. Navigate to the appropriate package.
b. Select Tools > Create > Class. There is also an icon to create classes.
c. The cross-hairs will appear to locate the class.
d. Rational Rose will give the class a default name (“NewClass”). Begin typing WTDocument;
when WTDocument appears in the drop down list, select it.
Example:

你可能感兴趣的:(C++,c,C#,UP)