}
if (btnRemove.equals(src)) {
// Remove selected step.
final MZmineProcessingStep selected = (MZmineProcessingStep) currentStepsList
.getSelectedValue();
if (selected != null) {
final int index = currentStepsList.getSelectedIndex();
batchQueue.remove(selected);
currentStepsList.setListData(batchQueue);
selectStep(index);
}
}
if (btnClear.equals(src)) {
// Clear the queue.
batchQueue.clear();
currentStepsList.setListData(batchQueue);
}
if (btnConfig.equals(src)) {
// Configure the selected item.
final MZmineProcessingStep selected = (MZmineProcessingStep) currentStepsList
.getSelectedValue();
final ParameterSet parameters = selected == null ? null : selected
.getParameterSet();
if (parameters != null) {
parameters.showSetupDialog();
}
}