mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/GP-1198_ghidravore_improving_symbolTree_for_large_scale_changes--SQUASHED'
This commit is contained in:
commit
2bc5ae910d
8 changed files with 149 additions and 17 deletions
|
@ -277,7 +277,7 @@ public class FilterTextField extends JPanel {
|
|||
@Override
|
||||
public void setEnabled(boolean enabled) {
|
||||
textField.setEnabled(enabled);
|
||||
updateField();
|
||||
updateField(textField.getText().length() > 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -324,7 +324,7 @@ public class FilterTextField extends JPanel {
|
|||
return textField;
|
||||
}
|
||||
|
||||
private void updateField() {
|
||||
private void updateField(boolean fireEvent) {
|
||||
String text = getText();
|
||||
hasText = text.length() > 0;
|
||||
|
||||
|
@ -332,7 +332,9 @@ public class FilterTextField extends JPanel {
|
|||
|
||||
updateBackgroundColor();
|
||||
|
||||
fireFilterChanged(text);
|
||||
if (fireEvent) {
|
||||
fireFilterChanged(text);
|
||||
}
|
||||
|
||||
boolean showFilterButton = hasText && textField.isEnabled();
|
||||
updateFilterButton(showFilterButton);
|
||||
|
@ -402,17 +404,17 @@ public class FilterTextField extends JPanel {
|
|||
private class FilterDocumentListener implements DocumentListener {
|
||||
@Override
|
||||
public void changedUpdate(DocumentEvent e) {
|
||||
updateField();
|
||||
updateField(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void insertUpdate(DocumentEvent e) {
|
||||
updateField();
|
||||
updateField(true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeUpdate(DocumentEvent e) {
|
||||
updateField();
|
||||
updateField(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
/* ###
|
||||
* IP: GHIDRA
|
||||
* REVIEWED: YES
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -16,13 +15,12 @@
|
|||
*/
|
||||
package docking.widgets.tree.tasks;
|
||||
|
||||
import ghidra.util.exception.CancelledException;
|
||||
import ghidra.util.task.TaskMonitor;
|
||||
|
||||
import javax.swing.JTree;
|
||||
|
||||
import docking.widgets.tree.GTree;
|
||||
import docking.widgets.tree.GTreeTask;
|
||||
import ghidra.util.exception.CancelledException;
|
||||
import ghidra.util.task.TaskMonitor;
|
||||
|
||||
public class GTreeClearSelectionTask extends GTreeTask {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue