@Override protected void undoEditAction(DataflowImpl dataflow) { if (processor instanceof ProcessorImpl) { try { dataflow.addProcessor((ProcessorImpl) processor); } catch (NamingException e) { //a processor with this name has already been removed } } }
@Override protected void undoEditAction(DataflowImpl dataflow) { if (processor instanceof ProcessorImpl) { try { dataflow.addProcessor((ProcessorImpl) processor); } catch (NamingException e) { //a processor with this name has already been removed } } }
/** * Adds the Processor instance to the Dataflow * * @throws EditException if the edit has already taken place (without an intermediate undo) or a processor with that name already exists. */ @Override protected void doEditAction(DataflowImpl dataflow) throws EditException { if (processor instanceof ProcessorImpl) { dataflow.addProcessor((ProcessorImpl)processor); } else { throw new EditException("The Processor is of the wrong implmentation, it should be of type ProcessorImpl"); } }
/** * Adds the Processor instance to the Dataflow * * @throws EditException if the edit has already taken place (without an intermediate undo) or a processor with that name already exists. */ @Override protected void doEditAction(DataflowImpl dataflow) throws EditException { if (processor instanceof ProcessorImpl) { dataflow.addProcessor((ProcessorImpl)processor); } else { throw new EditException("The Processor is of the wrong implmentation, it should be of type ProcessorImpl"); } }
/** * Adds the Processor instance to the Dataflow * * @throws EditException if the edit has already taken place (without an intermediate undo) or a processor with that name already exists. */ @Override protected void doEditAction(DataflowImpl dataflow) throws EditException { if (processor instanceof ProcessorImpl) { dataflow.addProcessor((ProcessorImpl)processor); } else { throw new EditException("The Processor is of the wrong implmentation, it should be of type ProcessorImpl"); } }