You can manually delete elements in code and use roundtripping
to update your IBM® Rational® Rhapsody® model.
You can delete variables, functions, types (Struct, Union, Enum, typedef),
members of types, attributes, operations, #define-s, #include-s, forward
declarations, and associations. You cannot delete auto‑generated #include
statements to the Rational Rhapsody framework
files.
About this task
Note: This feature applies to C and C++ in
Respect mode and Java in Advanced
mode.
Procedure
The roundtripping deletion of elements
from the code feature involves the following properties:
- Depending on whether you have Rational Rhapsody Developer
for C, C++, or Java:
- For Rational Rhapsody Developer for C and Rational Rhapsody Developer for C++:
Set the <lang>_Roundtrip::General::RoundtripScheme property
(for example, CPP_Roundtrip::General::RoundtripScheme)
to Respect to turn on code preserving, which is required
for this feature. See Rules for roundtripping SourceArtifacts.
- For Rational Rhapsody Developer
for Java: Set the Java_Roundtrip::General::RoundtripScheme property
to Advanced.
- For C, C++, and Java: Because the <lang>_Roundtrip::Update::AcceptChanges property
is, by default, set to Default, the feature to roundtrip
hand-edited deletion of elements is available.
Note: Be aware of the following conditions when the
<lang>_Roundtrip::Update::AcceptChanges property
is set to
Default: