osate / osate2

Open Source AADL2 Tool Environment
http://osate.org
Eclipse Public License 2.0
36 stars 8 forks source link

Renaming an element causes format loss #828

Closed lwrage closed 7 years ago

lwrage commented 7 years ago

If an element is renamed in its textual form (AADL) then formatting is lost in its associated graphical view.

philip-alldredge commented 7 years ago

Closing this. I have just merged a substantial rework to the graphical editor which should fix the issue with a caveat: If the user just renames an element in the text editor then the formatting will be lost. However, if the user performs a rename refactoring on an element, then affected references which are contained in diagrams should be updated.

The graphical editor now uses LTK refactoring to perform renames so that should help flush out any cases that haven't been handled. While testing things, I found a few cases where refactoring from the text editor can produce errors in the model. I'll go over my notes and report those as separate issue(s) sometime next week.