Przeglądaj źródła

Fixed incorrectly used parent variable.

markus.muehlbrandt@itemis.de 14 lat temu
rodzic
commit
383bec30a8

+ 1 - 2
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/clipboardsupport/NotationClipboardOperationHelper.java

@@ -288,8 +288,7 @@ public class NotationClipboardOperationHelper extends AbstractClipboardSupport {
 	// PATCH START
 	static EObject getSemanticPasteTarget(View view, View container) {
 		EObject semanticObjectToCopy = view.getElement();
-		View parent = (View) view.eContainer();
-		EObject semanticTarget = parent.getElement();
+		EObject semanticTarget = container.getElement();
 		EList<EReference> eAllReferences = semanticTarget.eClass()
 				.getEAllReferences();
 		for (EReference eReference : eAllReferences) {