Copy Paste issue [message #1800954] |
Thu, 10 January 2019 05:27  |
Eclipse User |
|
|
|
Consider the following meta-model: meta-model.jpg. Note the two containment references input and output from the Operation meta-class to the Parameter meta-class.
When copying an output parameter from one operation and pasting it into an other operation (using the generated EMF tree editor), it pastes the copied output parameter as an input parameter.
Hint: I analysed the code a little bit and as far as I understand, the copy command copies only the EObject to the clipboard. The paste command takes the content of the clipboard and (since it is not aware where the EObject has been copied from) pastes into the first EStructuralFeature that suits.
What are the suggessted way to overcome this problem?
Would it be possible to provide a general solution in the EMF framework itself?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06494 seconds