Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the
loadClassContentString
API for cut, copy and paste (#11598)
Instead of using the OMEdit internal structures for pasting elements use `loadClassContentString` to merge. Generate the Modelica code from the selected elements and then merge the code using `loadClassContentString`. Put the data in the form of string and JSON on the clipboard. Use it when paste is called.
- Loading branch information
Showing
5 changed files
with
208 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.