public void actionPerformed(ActionEvent e) { try { model.addDataConstraint(new DataConstraint(model, source, target)); } catch (DataConstraintCreationException e1) { // TODO Handle DataConstraintCreationException e1.printStackTrace(); } } }
public void actionPerformed(ActionEvent ae) { try { model.addDataConstraint(new DataConstraint( model, fromPort, toPort)); } catch (DataConstraintCreationException dcce) { // } } });
public void testNotifyThread() { ScuflModel model = new ScuflModel(); assertNull("notify thread should be null",model.notifyThread); ScuflModelEventListener listener = new ScuflModelEventListener() { public void receiveModelEvent(ScuflModelEvent event) { } }; model.addListener(listener); assertNotNull("notify thread should not be null",model.notifyThread); model.removeListener(listener); assertNull("notify thread should be null",model.notifyThread); }
public void actionPerformed(ActionEvent ae) { ap.getInputMapping().put(originalPort.getName(), thePort.getName()); ap.getOriginalProcessor().fireModelEvent( new MinorScuflModelEvent(ap.getProcessor(), "Port mapping changed")); } });
public void actionPerformed(ActionEvent ae) { ap.getOutputMapping().put(originalPort.getName(), thePort.getName()); ap.getOriginalProcessor().fireModelEvent( new MinorScuflModelEvent(ap.getProcessor(), "Port mapping changed")); } });
void linkPorts(String from, String to) throws UnknownPortException, DataConstraintCreationException { Port fromPort = model.getWorkflowSourceProcessor().locatePort(from); Port toPort = model.getWorkflowSinkProcessor().locatePort(to); model.addDataConstraint(new DataConstraint(model, fromPort, toPort)); }
void addInputPort(String name) throws DuplicatePortNameException, PortCreationException { model.getWorkflowSourceProcessor().addPort( new OutputPort(model.getWorkflowSourceProcessor(), name)); model.forceUpdate(); }
void addOutputPort(String name) throws DuplicatePortNameException, PortCreationException { model.getWorkflowSinkProcessor().addPort( new InputPort(model.getWorkflowSinkProcessor(), name)); model.forceUpdate(); }
protected void setUp() throws ProcessorCreationException, DuplicateProcessorNameException { model = new ScuflModel(); proc = new DummyProcessor(model, "proc"); }
public void testNameUneditable() throws DuplicatePortNameException, PortCreationException { Port port = new DummyPort(proc, "sillyport"); port.setName("somethingelse"); assertEquals("sillyport", port.getName()); }
public void testNameEdit() throws DuplicatePortNameException, PortCreationException { Port port = new EditablePort(proc, "sillyport"); assertEquals("sillyport", port.getName()); port.setName("Something illegal with spaces"); assertEquals("sillyport", port.getName()); port.setName("somethingelse"); assertEquals("somethingelse", port.getName()); }
public void testCreationWeirdName() throws Exception { // We have to allow weird names because of Soaplab String weirdName = "p-sillyport with spaces and !! 1337"; Port port = new DummyPort(proc, weirdName); assertEquals(weirdName, port.getName()); } public void testCreationIllegalName() throws Exception {
public String getName() { if (theProcessor == null) { return "Template editor for unknown processor"; } else { return "Template editor for " + theProcessor.getName(); } }
public String getDefinitionLSID() { String lsid = workflowModel.getDescription().getLSID(); if (lsid == null) { return ""; } return lsid; }
/** * */ public OfflineToggleModel(ScuflModel model) { super(); this.model = model; this.model.addListener(this); }
/** * Removes the ScuflModelEventListener from the internal ScuflModel */ public void removeInternalModelEventListener() { theInternalModel.removeListener(eventListener); }
public void setSelected(boolean b) { try { model.setOffline(b); } catch (SetOnlineException e) { // TODO Handle SetOnlineException e.printStackTrace(); } }
public void actionPerformed(ActionEvent ae) { try { model.addDataConstraint(new DataConstraint( model, fromPort, toPort)); } catch (DataConstraintCreationException dcce) { // } } });