@Test public void testNewGraphCommand() throws Exception { final Command<GraphCommandExecutionContext, RuleViolation> command = tested.newGraphCommand(canvasHandler); assertNotNull(command); assertTrue(command instanceof org.kie.workbench.common.stunner.cm.client.command.graph.CaseManagementCloneNodeCommand); assertEquals(candidate, ((org.kie.workbench.common.stunner.cm.client.command.graph.CaseManagementCloneNodeCommand) command).getCandidate()); }
@Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(AbstractCanvasHandler context) { return new org.kie.workbench.common.stunner.cm.client.command.graph.CaseManagementCloneNodeCommand(getCandidate(), getParentUuid(), getClonePosition(), cloneNodeCallback(context), getChildrenTraverseProcessor()); }
CaseManagementCloneNodeCommand extends CloneNodeCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(AbstractCanvasHandler context) { return new org.kie.workbench.common.stunner.cm.client.command.graph.CaseManagementCloneNodeCommand(getCandidate(), getParentUuid(), getClonePosition(), cloneNodeCallback(context), getChildrenTraverseProcessor()); } }
CaseManagementCloneNodeCommand extends CloneNodeCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(AbstractCanvasHandler context) { return new org.kie.workbench.common.stunner.cm.client.command.graph.CaseManagementCloneNodeCommand(getCandidate(), getParentUuid(), getClonePosition(), cloneNodeCallback(context), getChildrenTraverseProcessor()); } CaseManagementCloneNodeCommand(Node candidate,
                                          String parentUuid,
                                          Point2D cloneLocation,
                                          Consumer<Node> cloneNodeCommandCallback,
                                          ManagedInstance<ChildrenTraverseProcessor> childrenTraverseProcessor); }
CaseManagementCloneNodeCommand extends CloneNodeCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(AbstractCanvasHandler context) { return new org.kie.workbench.common.stunner.cm.client.command.graph.CaseManagementCloneNodeCommand(getCandidate(), getParentUuid(), getClonePosition(), cloneNodeCallback(context), getChildrenTraverseProcessor()); } CaseManagementCloneNodeCommand(Node candidate,
                                          String parentUuid,
                                          Point2D cloneLocation,
                                          Consumer<Node> cloneNodeCommandCallback,
                                          ManagedInstance<ChildrenTraverseProcessor> childrenTraverseProcessor); @Override CaseManagementCloneCanvasNodeCommand getCloneCanvasNodeCommand(Node parent, Node clone, String shapeId); }
CaseManagementCloneNodeCommand extends CloneNodeCommand { @Override protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(AbstractCanvasHandler context) { return new org.kie.workbench.common.stunner.cm.client.command.graph.CaseManagementCloneNodeCommand(getCandidate(), getParentUuid(), getClonePosition(), cloneNodeCallback(context), getChildrenTraverseProcessor()); } CaseManagementCloneNodeCommand(Node candidate,
                                          String parentUuid,
                                          Point2D cloneLocation,
                                          Consumer<Node> cloneNodeCommandCallback,
                                          ManagedInstance<ChildrenTraverseProcessor> childrenTraverseProcessor); @Override CaseManagementCloneCanvasNodeCommand getCloneCanvasNodeCommand(Node parent, Node clone, String shapeId);  }