public void actionPerformed(ActionEvent e) { Component parent = UIUtils.getActionEventParentWindow(e); String name = (String) JOptionPane.showInputDialog(parent, "Name for the new workflow output?", "Name required", JOptionPane.QUESTION_MESSAGE, null, null, ""); if (name != null) { try { model.getWorkflowSinkProcessor().addPort( new InputPort(model.getWorkflowSinkProcessor(), name)); model.forceUpdate(); } catch (PortCreationException pce) { JOptionPane.showMessageDialog(parent, "Port creation exception : \n" + pce.getMessage(), "Exception!", JOptionPane.ERROR_MESSAGE); } catch (DuplicatePortNameException dpne) { JOptionPane.showMessageDialog(parent, "Duplicate name : \n" + dpne.getMessage(), "Exception!", JOptionPane.ERROR_MESSAGE); } } }
} catch (NoSuccessException e) { } catch (DuplicatePortNameException e) { e.printStackTrace(); } catch (PortCreationException e) { e.printStackTrace();
public void actionPerformed(ActionEvent e) { Component parent = UIUtils.getActionEventParentWindow(e); String name = (String) JOptionPane.showInputDialog(parent, "Name for the new workflow input?", "Name required", JOptionPane.QUESTION_MESSAGE, null, null, ""); if (name != null) { try { model.getWorkflowSourceProcessor() .addPort( new OutputPort(model .getWorkflowSourceProcessor(), name)); model.forceUpdate(); } catch (PortCreationException pce) { JOptionPane.showMessageDialog(parent, "Port creation exception : \n" + pce.getMessage(), "Exception!", JOptionPane.ERROR_MESSAGE); } catch (DuplicatePortNameException dpne) { JOptionPane.showMessageDialog(parent, "Duplicate name : \n" + dpne.getMessage(), "Exception!", JOptionPane.ERROR_MESSAGE); } } } }
throw new ProcessorCreationException("Unable to create port! " + pce.getMessage()); } catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException("Unable to create port! " + dpne.getMessage()); throw new ProcessorCreationException("Unable to create port! " + pce.getMessage()); } catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException("Unable to create port! " + dpne.getMessage());
} catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException( "Unable to create port! " + dpne.getMessage()); } catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException( "Unable to create port! " + dpne.getMessage());
} catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException( "Unable to create input port! " + dpne.getMessage()); throw new ProcessorCreationException( "Unable to create output port! " + dpne.getMessage());
throw new ProcessorCreationException( formatError("When trying to create ports: " + e.getMessage())); } catch (DuplicatePortNameException e) { throw new ProcessorCreationException( formatError("When trying to create ports: " + e.getMessage()));
} catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException( "Unable to create input port! " + dpne.getMessage()); throw new ProcessorCreationException( "Unable to create output port! " + dpne.getMessage());
} catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException( "Unable to create port! " + dpne.getMessage());
/** * Set the endpoint for this biomoby processor */ void setEndpoint(String specifier) throws MalformedURLException, ProcessorCreationException { URL new_endpoint = new URL(specifier); if (this.endpoint != null) { if (!this.endpoint.equals(new_endpoint)) { fireModelEvent(new ScuflModelEvent(this, "Service endpoint changed to '" + specifier + "'")); } else { // Do nothing if the endpoint was the same as before return; } } else { fireModelEvent(new ScuflModelEvent(this, "Service endpoint set to '" + specifier + "'")); } this.endpoint = new_endpoint; try { generatePorts(); getDescriptionText(); } catch (PortCreationException e) { throw new ProcessorCreationException(formatError("When trying to create ports: " + e.getMessage())); } catch (DuplicatePortNameException e) { throw new ProcessorCreationException(formatError("When trying to create ports: " + e.getMessage())); } }
/** * Set the endpoint for this soaplab processor */ void setEndpoint(String specifier) throws MalformedURLException, ProcessorCreationException { URL new_endpoint = new URL(specifier); if (endpoint != null) { if (endpoint.equals(new_endpoint) == false) { fireModelEvent(new ScuflModelEvent(this, "Service endpoint changed to '" + specifier + "'")); } else { // Do nothing if the endpoint was the same as before return; } } else { fireModelEvent(new ScuflModelEvent(this, "Service endpoint set to '" + specifier + "'")); } endpoint = new_endpoint; try { if (this.isOffline() == false) { generatePorts(); getDescriptionText(); } } catch (PortCreationException pce) { throw new ProcessorCreationException(getName() + ": Exception when trying to create ports\n from Soaplab endpoint : " + pce.getMessage()); } catch (DuplicatePortNameException dpne) { throw new ProcessorCreationException(getName() + ": Exception when trying to create ports\n from Soaplab endpoint : " + dpne.getMessage()); } }
+ "' contained a duplicate port '" + dpne.getMessage() + "'"); } catch (PortCreationException pce) { throw new ProcessorCreationException("An error occured whilst generating ports for the BSF processor "