Skip to content

Commit

Permalink
'#39 Allow only on filter node selection at a time in combined filterer
Browse files Browse the repository at this point in the history
tree.
  • Loading branch information
patrickdalla committed Jul 1, 2024
1 parent 07883e2 commit 98c7e50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iped-app/src/main/java/iped/app/ui/FiltersPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import javax.swing.JTree;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.TreePath;
import javax.swing.tree.TreeSelectionModel;

import org.apache.lucene.search.Query;

Expand Down Expand Up @@ -127,6 +128,7 @@ public void mouseMoved(MouseEvent e) {
filterManager.setFilterEnabled(combinedFilterer, false);

combinedFiltererTree = new JTree(new CombinedFilterTreeModel(combinedFilterer));
combinedFiltererTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
combinedFiltererTree.setCellRenderer(new DefaultTreeCellRenderer() {

JLabel nlabel = new JLabel(invertIcon);
Expand Down

0 comments on commit 98c7e50

Please sign in to comment.