Set Attribute Types

Home Up

 

 

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

  1. Unzip the files
  2. 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:

  1. Confirms that Java is the selected Language.
  2. Types "String" into the Type entry field and clicks Add. The String type is added to the List in ASCII sorted order.
  3. Types "Vector" into the Type entry field and clecks Add. The Vector type is added the the List.
  4. Clicks OK. The Registry is now updated.
  5. Exits and restarts Rose so Rose uses the new Registry settings.

Notes

  1. 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.
  2. 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.
  3. 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.
  4. 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


All products mentioned are registered trademarks or trademarks of their respective companies.
Send mail to webmaster@rationalrose.com with questions or comments about this web site. 
Copyright © 1999-2000 Michael Moors
Last modified: February 25, 2000