Changes between Version 1 and Version 2 of Ticket #5355


Ignore:
Timestamp:
2019-02-22T09:22:53Z (6 years ago)
Author:
Andrea Bartolini
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5355

    • Property Summary OMEdit does not rename file when model is renamedOMEdit does not rename file and does not update the package.order file when model is renamed
  • Ticket #5355 – Description

    v1 v2  
    11If 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.
     2Moreover, also the content of package.order file is left unchanged.
    23
    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 .bak
     4The 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.
    45
    56In order to reproduce the problem you can open the attached zip, extract the model and execute the following steps:
     
    78- open {{{M1}}} model inside the package
    89- 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
    1011- open the {{{P1}}} package inside the {{{Test}}} package
    1112- redo the same for the model {{{M2}}}, the same problem will happen