Model RealTime 11.2 2022.21

175374: Model RealTime crashes during normal use

SWT resource handling in the product UI has been improved. Several places have been identified where SWT resources have been allocated and not properly disposed. The leaks have been addressed by adding proper disposal.

175303: When changing corresponding model element name, change fragment name automatically

Now it's possible to rename a model file when renaming its root model element using the Refactor - Rename command. The Rename dialog has a new check box "Update file name" which can be marked to do this.

175197: Line endings change when saving

XML specification for line ending for external entities converts all line ending to LF in the application. You can read more about it here https://www.w3.org/TR/REC-xml/#sec-line-ends
Now we have provided an option for user to choose preferred line ending under the Modeling preference section. CDATA section will have user selected line ending irrespective of line ending used in other parts of model file.

175091: Support for C++ 17 "nodiscard" feature

It's now possible to mark elements as nodiscard. It's also possible to specify a noDiscard message which the compiler will print if a nodiscard element is referenced. This feature requires C++ 17 or later C++ language versions and for nodiscard message, C++ 20 or later C++ language versions required

174741: Model RealTime code changes are neglected

Previously it could happen that changes made in the Code View were lost when saving them with Ctrl+S. More specifically this happened if there was another unsaved code snippet open in a Code Editor, and the two code snippets belonged to different model fragment files. This problem has now been fixed, and both Ctrl+S and the Save button in the toolbar can be used for saving the Code View changes in this situation. If you have already put the focus outside of the Code View and it still has some unsaved changes then you can select the resource root element (use the Navigate to Resource Root command) in the Project Explorer and then click the Save button in the toolbar to save the fragment file. Changes made in a Code Editor can as usual be saved by clicking inside the Code Editor and then invoke the Save command.

174194: The preference "C++ code standard" settings should be available from the TC

New property cppCodeStandard has been added to Transformation Configuration. New drop-down control "C++ code standard" has been added to Code Generation tab in TCJS Editor. By default it will show the value specified in global preference RealTime Development --> Build/Transformations --> C++ --> C++ code standard. It is possible to set a different C++ code standard from TC and it will override the global preference.

173875: CQPAR00251029 - Support for chrono classes in RTServices library

Timers can now be set using types from the std::chrono library.

164567: CQPAR00211779 - CODE VIEW LOSES INPUT FOCUS AFTER SAVE

Now focus remains on the Code View after a user invokes save using Ctrl+S keys. Therefore the user can continue editing in the Code View without having to manually focus on Code View.