@Override protected void undoEditAction(ProcessorImpl processor) { processor.iterationStack .configureFromElement(previousIterationStrategyState); processor.inputPorts .remove(processor.getInputPortWithName(newPortName)); }
@Override protected void undoEditAction(ProcessorImpl processor) { processor.iterationStack .configureFromElement(previousIterationStrategyState); processor.inputPorts .remove(processor.getInputPortWithName(port.getName())); }
@Override protected void undoEditAction(ProcessorImpl processor) { processor.iterationStack .configureFromElement(previousIterationStrategyState); processor.inputPorts .remove(processor.getInputPortWithName(port.getName())); }
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { if (processor.getInputPortWithName(port.getName())==null) throw new EditException("The processor doesn't have a port named:"+port.getName()); for (IterationStrategyImpl is : processor.iterationStack.getStrategies()) { is.removeInputByName(port.getName()); } processor.inputPorts.remove(port); }
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { if (processor.getInputPortWithName(port.getName())==null) throw new EditException("The processor doesn't have a port named:"+port.getName()); for (IterationStrategyImpl is : processor.iterationStack.getStrategies()) { is.removeInputByName(port.getName()); } processor.inputPorts.remove(port); }
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { // Add a new InputPort object to the processor and also create an // appropriate NamedInputPortNode in any iteration strategies. By // default set the desired drill depth on each iteration strategy node // to the same as the input port, so this won't automatically trigger // iteration staging unless the depth is altered on the iteration // strategy itself.) if (processor.getInputPortWithName(newPortName) != null) { throw new EditException( "Attempt to create duplicate input port with name '" + newPortName + "'"); } previousIterationStrategyState = processor.iterationStack.asXML(); processor.inputPorts.add(new ProcessorInputPortImpl(processor, newPortName, newPortDepth)); for (IterationStrategyImpl is : processor.iterationStack.getStrategies()) { NamedInputPortNode nipn = new NamedInputPortNode(newPortName, newPortDepth); is.addInput(nipn); is.connectDefault(nipn); } }
sink = pi.getInputPortWithName(split[1]); break;
sink = pi.getInputPortWithName(split[1]); break;
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { // Add a new InputPort object to the processor and also create an // appropriate NamedInputPortNode in any iteration strategies. By // default set the desired drill depth on each iteration strategy node // to the same as the input port, so this won't automatically trigger // iteration staging unless the depth is altered on the iteration // strategy itself.) if (processor.getInputPortWithName(port.getName()) != null) { throw new EditException( "Attempt to create duplicate input port with name '" + port.getName() + "'"); } previousIterationStrategyState = processor.iterationStack.asXML(); processor.inputPorts.add(port); for (IterationStrategyImpl is : processor.iterationStack.getStrategies()) { NamedInputPortNode nipn = new NamedInputPortNode(port.getName(), port.getDepth()); is.addInput(nipn); is.connectDefault(nipn); } }
sink = pi.getInputPortWithName(split[1]); break;
@Override protected void doEditAction(ProcessorImpl processor) throws EditException { // Add a new InputPort object to the processor and also create an // appropriate NamedInputPortNode in any iteration strategies. By // default set the desired drill depth on each iteration strategy node // to the same as the input port, so this won't automatically trigger // iteration staging unless the depth is altered on the iteration // strategy itself.) if (processor.getInputPortWithName(port.getName()) != null) { throw new EditException( "Attempt to create duplicate input port with name '" + port.getName() + "'"); } previousIterationStrategyState = processor.iterationStack.asXML(); processor.inputPorts.add(port); for (IterationStrategyImpl is : processor.iterationStack.getStrategies()) { NamedInputPortNode nipn = new NamedInputPortNode(port.getName(), port.getDepth()); is.addInput(nipn); is.connectDefault(nipn); } }