private void editSettings(InputFile inputFile) { if (inputFileSettingsDialog == null) { inputFileSettingsDialog = new InputFileSettingsDialog(frame); } int result = inputFileSettingsDialog.showDialog(inputFile); if (result != JOptionPane.CANCEL_OPTION) { inputFileSettingsDialog.getInputFile(); // force update of builder settings document.fireDataChanged(); } }
public void delete() { int[] selRows = dataTable.getSelectedRows(); Set<InputFile> dataToRemove = new HashSet<InputFile>(); for (int row : selRows) { dataToRemove.add(document.getInputFiles().get(row)); } // TODO: would probably be a good idea to check if the user wants to remove the last file document.getInputFiles().removeAll(dataToRemove); document.fireDataChanged(); if (document.getInputFiles().size() == 0) { // all data partitions removed so reset the taxa frame.setStatusMessage("No data loaded"); } }