mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-01-23-25'
This commit is contained in:
commit
ac617a796b
1 changed files with 10 additions and 7 deletions
|
@ -16,8 +16,9 @@
|
|||
package docking.widgets;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.*;
|
||||
import java.util.Collection;
|
||||
import java.util.Map.Entry;
|
||||
import java.util.TreeMap;
|
||||
import java.util.regex.*;
|
||||
|
||||
import javax.swing.JEditorPane;
|
||||
|
@ -66,6 +67,8 @@ public class TextComponentSearcher implements FindDialogSearcher {
|
|||
|
||||
public void setEditorPane(JEditorPane editorPane) {
|
||||
if (this.editorPane != editorPane) {
|
||||
Document document = editorPane.getDocument();
|
||||
document.removeDocumentListener(documentListener);
|
||||
markResultsStale();
|
||||
}
|
||||
this.editorPane = editorPane;
|
||||
|
@ -79,11 +82,13 @@ public class TextComponentSearcher implements FindDialogSearcher {
|
|||
public void dispose() {
|
||||
caretUpdater.dispose();
|
||||
|
||||
if (editorPane != null) {
|
||||
Document document = editorPane.getDocument();
|
||||
document.removeDocumentListener(documentListener);
|
||||
|
||||
clearHighlights();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearHighlights() {
|
||||
|
@ -253,9 +258,7 @@ public class TextComponentSearcher implements FindDialogSearcher {
|
|||
return;
|
||||
}
|
||||
|
||||
Iterator<FindMatch> it = matchesByPosition.values().iterator();
|
||||
while (it.hasNext()) {
|
||||
FindMatch match = it.next();
|
||||
for (FindMatch match : matchesByPosition.values()) {
|
||||
boolean isActive = false;
|
||||
if (match.contains(pos)) {
|
||||
activeMatch = match;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue