if(c.getSource().equals(id))
isConnected = true;
}
//If the output is not connected to any other modules.
if(isConnected == false){
Connection runConn; //connection to the run module
//Create a new parameter for the runmodule that is connected
//to the connectionless output.
LONI.tree.module.Parameter runInput = new LONI.tree.module.Parameter();
runInput.setId(runContext.getPathContext().getAbsoluteContext("conn"+conncount));
runInput.setFileFormat(new Format());
runInput.getFormat().setCardinality(1);
runInput.getFormat().setType("File");
runFileType = new FileType();
runFileType.setName(GENERIC_DICT_TYPE);
runFileType.setDescription("");
runFileType.setExtension("");
runInput.getFormat().getFileTypes().addFileType(runFileType);
runInput.setOrder(conncount);
runInput.setPrefix("-input");
runInput.setPrefixSpaced(true);
runInput.setEnabled(true);
runInput.setName("input"+ conncount);
//add the created input to the runmodule.
runModule.addInput(runInput);
//create a new connection from the connectionless output to the new run module input.
runConn = new Connection(id, runInput.getId());
le.addConnection(runConn);
conncount++;
}
}
//add all the connections in the environment being maintained to