@Override protected void doEditAction(DataflowImpl dataflow) throws EditException { dataflow.removeDataflowOutputPort(dataflowOutputPort); }
@Override protected void undoEditAction(DataflowImpl dataflow) { try { dataflow.removeDataflowOutputPort(dataflowOutputPort); } catch (EditException e1) { //this port has already been added } }
@Override protected void undoEditAction(DataflowImpl dataflow) { try { dataflow.removeDataflowOutputPort(newPortName); } catch (EditException e) { // shouldn't happen as port should exist } }
@Override protected void undoEditAction(DataflowImpl dataflow) { try { dataflow.removeDataflowOutputPort(newPortName); } catch (EditException e) { // shouldn't happen as port should exist } }
@Override protected void undoEditAction(DataflowImpl dataflow) { try { dataflow.removeDataflowOutputPort(newPortName); } catch (EditException e) { // shouldn't happen as port should exist } }
@Override protected void undoEditAction(DataflowImpl dataflow) { try { dataflow.removeDataflowOutputPort(dataflowOutputPort); } catch (EditException e1) { //this port has already been added } }
@Override protected void doEditAction(DataflowImpl dataflow) throws EditException { dataflow.removeDataflowOutputPort(dataflowOutputPort); }
/** * Remove the named dataflow output port * * @param name * name of the dataflow output port to remove * @throws EditException * if the specified port doesn't exist within this dataflow */ protected synchronized void removeDataflowOutputPort(String name) throws EditException { DataflowOutputPort found = null; for (DataflowOutputPort dop : outputs) { if (dop.getName().equals(name)) { found = dop; break; } } if (found != null) { removeDataflowOutputPort(found); } else { throw new EditException("No such output port '" + name + "' in dataflow."); } }
/** * Remove the named dataflow output port * * @param name * name of the dataflow output port to remove * @throws EditException * if the specified port doesn't exist within this dataflow */ protected synchronized void removeDataflowOutputPort(String name) throws EditException { DataflowOutputPort found = null; for (DataflowOutputPort dop : outputs) { if (dop.getName().equals(name)) { found = dop; break; } } if (found != null) { removeDataflowOutputPort(found); } else { throw new EditException("No such output port '" + name + "' in dataflow."); } }
/** * Remove the named dataflow output port * * @param name * name of the dataflow output port to remove * @throws EditException * if the specified port doesn't exist within this dataflow */ protected synchronized void removeDataflowOutputPort(String name) throws EditException { DataflowOutputPort found = null; for (DataflowOutputPort dop : outputs) { if (dop.getName().equals(name)) { found = dop; break; } } if (found != null) { removeDataflowOutputPort(found); } else { throw new EditException("No such output port '" + name + "' in workflow."); } }