public boolean validateInput() { final File[] fileList = productSetPanel.getFileList(); if (fileList.length == 0 || (fileList.length == 1 && !fileList[0].exists())) { showErrorMsg("Please add some products to the table"); return false; } return true; }
private void notifyMSG(final BatchProcessListener.BatchMSG msg) { for (final BatchProcessListener listener : listenerList) { listener.notifyMSG(msg, productSetPanel.getFileList(), getAllBatchProcessedTargetProducts()); } }
protected void assignParameters() { final File[] fileList = productSetPanel.getFileList(); int graphIndex = 0; for (File f : fileList) { final String name = FileUtils.getFilenameWithoutExtension(f); final File targetFolder = productSetPanel.getTargetFolder(); if (!targetFolder.exists()) { if (!targetFolder.mkdirs()) { SystemUtils.LOG.severe("Unable to create folders in " + targetFolder); } } final File targetFile = new File(targetFolder, name); final String targetFormat = productSetPanel.getTargetFormat(); setIO(graphExecutorList.get(graphIndex), "Read", f, "Write", targetFile, targetFormat); if (slaveFileMap != null) { final File[] slaveFiles = slaveFileMap.get(f); if (slaveFiles != null) { setSlaveIO(graphExecutorList.get(graphIndex), "ProductSet-Reader", f, slaveFiles); } } ++graphIndex; } }
protected void cloneGraphs() throws Exception { final GraphExecuter graphEx = graphExecutorList.get(0); for (int graphIndex = 1; graphIndex < graphExecutorList.size(); ++graphIndex) { final GraphExecuter cloneGraphEx = graphExecutorList.get(graphIndex); cloneGraphEx.ClearGraph(); } graphExecutorList.clear(); graphExecutorList.add(graphEx); final File[] fileList = productSetPanel.getFileList(); for (int graphIndex = 1; graphIndex < fileList.length; ++graphIndex) { final GraphExecuter cloneGraphEx = new GraphExecuter(); LoadGraph(cloneGraphEx, graphFile, false); graphExecutorList.add(cloneGraphEx); // copy UI parameter to clone final GraphNode[] cloneGraphNodes = cloneGraphEx.GetGraphNodes(); for (GraphNode cloneNode : cloneGraphNodes) { final GraphNode node = graphEx.getGraphNodeList().findGraphNode(cloneNode.getID()); if (node != null) cloneNode.setOperatorUI(node.GetOperatorUI()); } } }
final File[] fileList = productSetPanel.getFileList(); int graphIndex = 0; for (GraphExecuter graphEx : graphExecutorList) {