Hi, I’ve just learned about instant reverse code to class diagram, when I reverse into a class diagram, then I copy and paste them to another diagram for another function, I notices that whatever changes I do for one diagram is inflicted on another. What can I do so it become independent of eachother ?
I tried instant reverse everytime I want another diagram instead of copying but it’s still the same issue.
In other UNL tools, the reverse to class diagram function allows you to generate into a project structure in the sidepane where you can drag & drop classes table into different diagrams, I wonder if we can do the same here.
Our product is using model repository to store the reversed class. The Instant Reverse process translate your source code into class model and put them into repository. Creating class diagram is simply visualize the class models to diagram. When perform copy & paste in diagram it basically is create another visualization of the same model therefore the changes will be reflected on both sides. You can right click on the paste target and select Paste Model Element to paste your classes as a separate model so that changes will not apply to original element. But please note that since some model types (like class) do not allow duplicate name under the same parent, if both source and target diagram are under the same container then the pasted model will have a suffix auto added to it. You may need to have the target diagram under different model hierarchy in order to have the pasted model having the same name.