In Rational Rose®,
you can define and assign data types to attributes, parameters, or
function return types by editing the type field in Rational Rose specifications.
However, in the Rational® modeling products,
you can only assign data types to attributes, method parameters, or
method return types that are available in the model and model libraries.
When you import Rational Rose models,
you can override the default settings so that user-defined data types
import as classes rather than primitive types.
About this task
Note: Before version 7.5.1, when the Rational Rose model
import wizard detected an unresolved user-defined data type (data
types that are not part of the standard primitive or derived data
types defined by any programming language set) for an attribute, method
parameter, or method return type, the import wizard applied a Rose
Property Stereotype to preserve the type.
To import
Rational Rose user-defined
types as classes:
Procedure
- Save any open models and close the Rational modeling product.
- In a text editor, open the eclipse.ini file that resides
in the following default location: X:\Program Files\IBM\SDP\.
In this example, X represents the drive on which Rational Software Delivery
Platform is
installed.
- Modify the eclipse.ini file by adding the -Dtype=class option.
- Save and close the eclipse.ini file.
What to do next
You can now start the Rational modeling
product and import the
Rational Rose model
so that Rose user-defined types import as classes.