Copy & paste "link" elements in a model [message #637681] |
Mon, 08 November 2010 05:45  |
Eclipse User |
|
|
|
Hello.
I have observed that when I copy and paste a "link" element, insted an element which is a reference to a "physical" element at the model, the paste is not complete in the next sense. If I modify some properties of the recent copied element, that values are not updated in the rest of the references and the "source" element. However, is I save the editor and reopen it, the model is loaded right...
So I wanted to know if I have to execute this kind of copy & paste operations about "link" elements in order to refresh the model state without saving and reopening.
I have observed that the editor execute this operation right like a DND operation, but I was also very interested in getting the same behaviour for the copy & paste.
Have you got any suggestion?
Thanks in advance.
Best regards.
Carlos.
|
|
|
|
|
|
Re: Copy & paste "link" elements in a model [message #638722 is a reply to message #638269] |
Fri, 12 November 2010 05:55  |
Eclipse User |
|
|
|
Ed,
Firstable, excuse me because of my previous confusing explanation.
In order to answer your question, the same object showing up more than once in the tree.
The point was that after the copy&paste, when I tried to modify some properties at the dangling reference, obviuosly, that values were not updated in the other references.
When I said "it works after it's been reloaded", I wanted to say that after the copy&paste, I saved, closed and reopened the editor, and the dangling reference, became a "normal" reference.
So that I have done is implementing the behaviour I want over the standard copy & paste in order to allow the user to paste the non-containment references. Now, after the copy&paste, if I modify some property at the recent pasted reference, that value also changes in all the references.
Anyway, thank you very much for your attention.
Best regards.
Carlos.
|
|
|
Powered by
FUDForum. Page generated in 0.25307 seconds