X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.diagram%2Fsrc%2Forg%2Fsimantics%2Fdiagram%2Fhandler%2FPaster.java;h=c8995f4c1f4777be79311bc0d502616af534f147;hp=03edda6bdbc428762fc84516f52404c1eeb2aea2;hb=26b517dc84713ad02191ba4dbad7d3b0efc151bb;hpb=ef3b8716d2e47f909f8f05c9831f6b4207bd7514 diff --git a/bundles/org.simantics.diagram/src/org/simantics/diagram/handler/Paster.java b/bundles/org.simantics.diagram/src/org/simantics/diagram/handler/Paster.java index 03edda6bd..c8995f4c1 100644 --- a/bundles/org.simantics.diagram/src/org/simantics/diagram/handler/Paster.java +++ b/bundles/org.simantics.diagram/src/org/simantics/diagram/handler/Paster.java @@ -274,7 +274,7 @@ public class Paster { return noParentElementReturnValue; } - private void cut() throws Exception { + protected void cut() throws Exception { final GraphLayerManager glm = targetContext.get(GraphSynchronizationHints.GRAPH_LAYER_MANAGER); final THashSet cutElements = new THashSet(); @@ -748,7 +748,7 @@ public class Paster { } }; - private void copy() throws Exception { + protected void copy() throws Exception { nodeMap = new NodeMap(); CommonDBUtils.selectClusterSet(graph, targetDiagram); @@ -1360,5 +1360,8 @@ public class Paster { public NodeMap getNodeMap() { return nodeMap; } - + + protected PasteOperation getOperation() { + return op; + } }