Opened 9 years ago

Last modified 7 years ago

#3915 new enhancement

Rename feature missing in OMEdit

Reported by: Francesco Casella Owned by: Adeel Asghar
Priority: blocker Milestone: 2.0.0
Component: OMEdit Version:
Keywords: Cc:

Description

There is currently no feature to rename a model in OMEdit; one has to make a copy of the model with the new name and delete the old one. However, all the classes using this model are broken if one does so.

It would be nice to have a feature such as in Dymola, whereby upon renaming of a class A into B, all references to A in loaded classes are renamed to B automatically.

Would this be hard to implement?

Change History (3)

comment:1 by anonymous, 7 years ago

are any programs about this ticket?
The OM usability would be greatly enhanced if this is addressed.

comment:2 by Francesco Casella, 7 years ago

Priority: highblocker

I am raising the priority of this feature to blocker for 2.0.0, because I think a full-fledged Modelica tool cannot miss it.

The difficult part is the refactoring of loaded classes, otherwise this could be trivially implemented as a sequence of Duplicate and Delete actions.

Comments from front-end developers would be welcome

comment:3 by massimo ceraolo, 7 years ago

Also copying/pasting across models (and possibly across packages) should be made available.
This may require updating links to already loaded models and packages, which is somewhat connected to the refactoring of loaded classes needed by the rename feature.

Therefore I propose to address copy/paste across models when the renaming feature is added.
Note that copy/paste within a single model is already supported, or will be soon be supported (see comment 6 in #4585)

Note: See TracTickets for help on using tickets.