@Override public void actionPerformed(final ActionEvent event) { final BatchGraphDialog dialog = new BatchGraphDialog(SnapApp.getDefault().getAppContext(), "Batch Processing", "batchProcessing", false); dialog.show(); }
private void batchProcess(final ProductEntry[] productEntryList, final File graphFile) { final BatchGraphDialog batchDlg = new BatchGraphDialog(SnapApp.getDefault().getAppContext(), "Batch Processing", "batchProcessing", false); batchDlg.setInputFiles(productEntryList); if (graphFile != null) { batchDlg.LoadGraph(graphFile); } batchDlg.show(); } }
private void batchProcess(final ProductEntry[] productEntryList, final Map<File, File[]> slaveFileMap, final File outputFolder, final File graphFile) { final BatchGraphDialog batchDlg = new BatchGraphDialog(SnapApp.getDefault().getAppContext(), "Batch Processing", "batchProcessing", closeOnDone); batchDlg.addListener(batchListener); batchDlg.setInputFiles(productEntryList); batchDlg.setTargetFolder(outputFolder); batchDlg.setSlaveFileMap(slaveFileMap); if (graphFile != null) { batchDlg.LoadGraph(graphFile); } batchDlg.show(); if (autoApply) batchDlg.onApply(); }