Question & Answer
Question
How do you make IBM Rational Rhapsody generate parameters of class constructor on multiple lines?
Cause
With Rhapsody 8.0.3 or earlier, no matter how many parameters are added to class constructor, Rhapsody will generate the whole info within one line, which causes the source readability to be reduced.
In Rhapsody 8.0.4, a new model property CG_[Lang]::Class::MultiLineInitializerList is introduced in the product to improve the code readability.
Answer
You can use this new property and Rhapsody Code Generator will automatically generate constructor parameters on multiple lines.
Review the below code examples:
- When CG_[Lang]::Class::MultiLineInitializerList is unchecked, all the arguments are generated in one line.
- When CG_[Lang]::Class::MultiLineInitializerList is checked, the arguments are generated crossing multiple lines.
Related Information
[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"8.0.4","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21649299