Skip to content

Commit

Permalink
fixes #142
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Moinat committed Dec 20, 2021
1 parent f8cf5fe commit 1f0d539
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/org/ohdsi/usagi/ui/FilterPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ public boolean getFilterByAuto() {
return filterByAutoCheckBox.isSelected();
}

public void setFilterByAuto() {
filterByAutoCheckBox.setSelected(true);
}

public boolean getFilterStandard() {
return filterStandardCheckBox.isSelected();
}
Expand Down
5 changes: 5 additions & 0 deletions src/org/ohdsi/usagi/ui/ImportDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1f0d539

Please sign in to comment.