Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-2419 - review fixes

dragonmacher91eb79594a63
diff --git a/Ghidra/Features/Base/src/main/help/help/topics/Trees/GhidraTreeFilter.html b/Ghidra/Features/Base/src/main/help/help/topics/Trees/GhidraTreeFilter.html
index 23e99abe9d..776a8c8b68 100644
--- a/Ghidra/Features/Base/src/main/help/help/topics/Trees/GhidraTreeFilter.html
+++ b/Ghidra/Features/Base/src/main/help/help/topics/Trees/GhidraTreeFilter.html
@@ -172,7 +172,7 @@
<H3>Invert Filter</H3>
<BLOCKQUOTE>
- <P>Selecting the inverted checkbox will cause the filter to only include those tree nodes
+ <P>Selecting the Invert Filter checkbox will cause the filter to only include those tree nodes
or table rows that <B>DO NOT</B> meet the filter text criteria. In other words, "contains"
becomes "does not contain". This negation happens after all other filtering tests have been
performed, including multi-term matching.</P>
@@ -181,7 +181,7 @@
<H3>Use Path</H3>
<BLOCKQUOTE>
- <P>Selecting the inverted checkbox will cause the filter to prepend each node's path
+ <P>Selecting the Use Path checkbox will cause the filter to prepend each node's path
to its text being used to filter. This allows users to filter on a node's path. When
this box is unselected, only the default node filter information is used, typically the
nodes name.</P>
diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/filter/FilterOptionsEditorDialog.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/filter/FilterOptionsEditorDialog.java
index 00f637b0c3..8160a6ae1c 100644
--- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/filter/FilterOptionsEditorDialog.java
+++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/filter/FilterOptionsEditorDialog.java
@@ -331,7 +331,8 @@ public class FilterOptionsEditorDialog extends DialogComponentProvider {
pathCheckbox = new GCheckBox("Use Path");
pathCheckbox.setToolTipText("<html>" +
- "Adds each node's path to its filter information, which allows for path filtering");
+ "Allows filtering on node paths, for example '*/folder/node' or " +
+ "'*folder1*folder2*node'");
if (initialFilterOptions.shouldUsePath()) {
pathCheckbox.setSelected(true);
}
diff --git a/Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/MultiTextFilterTreeFilter.java b/Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/MultiTextFilterTreeFilter.java
index f33206b832..7929d028ec 100644
--- a/Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/MultiTextFilterTreeFilter.java
+++ b/Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/MultiTextFilterTreeFilter.java
@@ -43,7 +43,7 @@ public class MultiTextFilterTreeFilter implements GTreeFilter {
}
List<String> nodeData = transformer.transform(node);
- Stream<TextFilter> stream = filters.parallelStream();
+ Stream<TextFilter> stream = filters.stream();
if (evalMode == MultitermEvaluationMode.AND) {
return stream.allMatch(f -> matches(f, nodeData));
}
@@ -56,7 +56,7 @@ public class MultiTextFilterTreeFilter implements GTreeFilter {
}
private static boolean matches(TextFilter filter, List<String> nodeData) {
- return nodeData.parallelStream().anyMatch(data -> filter.matches(data));
+ return nodeData.stream().anyMatch(data -> filter.matches(data));
}
}