Community
Participate
Working Groups
During the paste part of a cut/copy/paste operation, the GMF copy/paste infrastructure adds pasted elements to their new container without first calling EcoreUtil.remove(). For elements that are contained in a feature that supports cross-resource containment, this will correctly set the container of the element at the metamodel level, but will leave it contained within the LoadingEMFResource at the EMF level. Subsequent post-processing will treat this case as an indication that the paste operation failed and replace the pasted element with a proxy reference. In the cut/paste scenario, this reference will never be resolvable because the proxy URI refers to the source model for the element, from which it has been removed. Also, the target resource will have problems saving and reloading because of these dangling hrefs to unresolvable proxies. Attached is a patch to org.eclipse.gmf.runtime.emf.clipboard.core.ClipboardSupportUtil that fixes this problem. Please consider applying it.
Created attachment 41681 [details] patch as described in bug
Reviewed and applied patch
Committed the patch
[target cleanup] 1.0 RC3 was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Runtime EMF was the original product and component for this bug