|
| |
Set Attribute Types by Greg Buhtz
Use this script to set the fundamental types which Rose will reverse engineer as attributes for C++, CORBA, Java, Visual C++ and Visual Basic.
Installation
- Unzip the files
- Copy the files into the Rose program directory
Operation
Open the "setattr.ebs" script using the Rose menu command Tools > Open Script...
Execute it by pressing the "run" button.
The script opens a "Set Attribute Types" dialog with the following fields and buttons:
- Language drop-down list
Select the language that will be reverse engineered. Java is the default.
- Type entry field
Enter the name of a new type here and click the Add button to add it to the list.
- List of active types
View the current list of attributes and Select an attribute to be deleted.
- Default button
Reset the list of attributes for the current Language to be the same as the list shipped with Rose 2000 Enterprise.
- Add button
Add the name shown in the Type entry field to the list as a new item.
- Remove button
Remove the selected List entry from the List.
- Cancel button (and Cancel "X")
Do not make changes to the system Registry and exit the script.
- OK button
Update the system Registry and exit the script.
Example
A Java user would like String and Vector attributes to display as attributes in Rose after reverse engineering. The user runs this script and perfors the following steps:
- Confirms that Java is the selected Language.
- Types "String" into the Type entry field and clicks Add. The String type is added to the List in ASCII sorted order.
- Types "Vector" into the Type entry field and clecks Add. The Vector type is added the the List.
- Clicks OK. The Registry is now updated.
- Exits and restarts Rose so Rose uses the new Registry settings.
Notes
- Basic Script cannot read the Registry and uses the utility REGEDIT to write updates to the Registry. Therefore this scirpt may not reflect the current state of the Registry. It will not see changes made manually to the Registry through the use of any other tool, including Rose.
- The script remembers the last entered information by reading and writitng the file setattr.dat which is stored in the same directory as the script. If this file is damaged, causing the script to malfunction, the script can be reset by deleting this file. It will be recreated the next time the script is run.
- The script creates a registry file called setattr.reg in the same directory the script is stored in. This file can be copied to other computers and executed (using REGEDIT) to set the same reverse-engineering behavior for all machines in a multiuser environment.
- Rose reads the Registry during program start to aquire these settings, so changes will not be seen until Rose exits and is run again.
Download (4KB) (14-Feb-2000)
www.rationalrose.com/scripts/setattr.zip |