Changes between Version 1 and Version 2 of Ticket #5355
- Timestamp:
- 2019-02-22T09:22:53Z (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5355
- Property Summary OMEdit does not rename file when model is renamed → OMEdit does not rename file and does not update the package.order file when model is renamed
-
Ticket #5355 – Description
v1 v2 1 1 If you create a package with the option to save models in single files and then you rename a model the name inside the model file is updated but not the file name. 2 Moreover, also the content of package.order file is left unchanged. 2 3 3 The expected behavior is that also the file is renamed and a copy of the original file file is kept on disk, renamed as .bak4 The expected behavior is that also the file is renamed, a copy of the original file is kept on disk, renamed as .bak, and the package.order file is updated with the new model name. 4 5 5 6 In order to reproduce the problem you can open the attached zip, extract the model and execute the following steps: … … 7 8 - open {{{M1}}} model inside the package 8 9 - from the text view, rename the model as you want (e.g. M11) 9 - save the model, the text inside the file M1.mo is updated but the name of the file M1.mo doesen't change 10 - save the model, the text inside the file M1.mo is updated but the name of the file M1.mo doesen't change and the content of the package.order file is left unchanged 10 11 - open the {{{P1}}} package inside the {{{Test}}} package 11 12 - redo the same for the model {{{M2}}}, the same problem will happen