From dc04ce90f39eade2485fec727555e7958fd38550 Mon Sep 17 00:00:00 2001 From: Maxim Moinat Date: Mon, 20 Dec 2021 21:32:20 +0100 Subject: [PATCH] fixes #142 --- src/org/ohdsi/usagi/ui/FilterPanel.java | 4 ++++ src/org/ohdsi/usagi/ui/ImportDialog.java | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/src/org/ohdsi/usagi/ui/FilterPanel.java b/src/org/ohdsi/usagi/ui/FilterPanel.java index f8cb856..ba35889 100644 --- a/src/org/ohdsi/usagi/ui/FilterPanel.java +++ b/src/org/ohdsi/usagi/ui/FilterPanel.java @@ -148,6 +148,10 @@ public boolean getFilterByAuto() { return filterByAutoCheckBox.isSelected(); } + public void setFilterByAuto() { + filterByAutoCheckBox.setSelected(true); + } + public boolean getFilterStandard() { return filterStandardCheckBox.isSelected(); } diff --git a/src/org/ohdsi/usagi/ui/ImportDialog.java b/src/org/ohdsi/usagi/ui/ImportDialog.java index 998e1e6..e1d7c93 100644 --- a/src/org/ohdsi/usagi/ui/ImportDialog.java +++ b/src/org/ohdsi/usagi/ui/ImportDialog.java @@ -232,6 +232,11 @@ private Component createColumnMappingPanel() { autoConceptIdColumn = new JComboBox<>(comboBoxOptions); autoConceptIdColumn.setToolTipText("The column containing a (semicolon-delimited) list of concept IDs to which the search will be restricted"); columnMappingPanel.add(autoConceptIdColumn, cBox); + autoConceptIdColumn.addActionListener(e -> { + if (!autoConceptIdColumn.getSelectedItem().toString().equals("")) { + filterPanel.setFilterByAuto(); + } + }); gridY = cLabel.gridy + 1; addExtraColumnMapping();