@Test public void startNodeTestGraphCommand() { this.tested = new DeleteNodeCommand(graphHolder.startNode); final org.kie.workbench.common.stunner.core.graph.command.impl.SafeDeleteNodeCommand graphCommand = (org.kie.workbench.common.stunner.core.graph.command.impl.SafeDeleteNodeCommand) tested.newGraphCommand(canvasHandler); assertNotNull(graphCommand); assertEquals(graphHolder.startNode, graphCommand.getNode()); }
@Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new SafeDeleteNodeCommand(candidate, deleteProcessor, options); }
DeleteNodeCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new SafeDeleteNodeCommand(candidate, deleteProcessor, options); } }
DeleteNodeCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new SafeDeleteNodeCommand(candidate, deleteProcessor, options); } DeleteNodeCommand(final Node candidate);  DeleteNodeCommand(final Node candidate,
                             final SafeDeleteNodeCommand.Options options); @SuppressWarnings("unchecked")  DeleteNodeCommand(final Node candidate,
                             final SafeDeleteNodeCommand.Options options,
                             final CanvasDeleteProcessor deleteProcessor); }
DeleteNodeCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new SafeDeleteNodeCommand(candidate, deleteProcessor, options); } DeleteNodeCommand(final Node candidate);  DeleteNodeCommand(final Node candidate,
                             final SafeDeleteNodeCommand.Options options); @SuppressWarnings("unchecked")  DeleteNodeCommand(final Node candidate,
                             final SafeDeleteNodeCommand.Options options,
                             final CanvasDeleteProcessor deleteProcessor); Node getCandidate(); SafeDeleteNodeCommand.Options getOptions(); @Override String toString(); CanvasDeleteProcessor getDeleteProcessor(); }
DeleteNodeCommand extends AbstractCanvasGraphCommand { @Override @SuppressWarnings("unchecked") protected Command<GraphCommandExecutionContext, RuleViolation> newGraphCommand(final AbstractCanvasHandler context) { return new SafeDeleteNodeCommand(candidate, deleteProcessor, options); } DeleteNodeCommand(final Node candidate);  DeleteNodeCommand(final Node candidate,
                             final SafeDeleteNodeCommand.Options options); @SuppressWarnings("unchecked")  DeleteNodeCommand(final Node candidate,
                             final SafeDeleteNodeCommand.Options options,
                             final CanvasDeleteProcessor deleteProcessor); Node getCandidate(); SafeDeleteNodeCommand.Options getOptions(); @Override String toString(); CanvasDeleteProcessor getDeleteProcessor();  }