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:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值