mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-1718 - Help - Fixed help search highlights not getting cleared when
the find dialog is closed
This commit is contained in:
parent
c3c20d9e0f
commit
ac8458c169
2 changed files with 6 additions and 4 deletions
|
@ -200,12 +200,12 @@ class HelpViewSearcher {
|
|||
private JEditorPane getHTMLEditorPane(JHelpContentViewer contentViewer) {
|
||||
//
|
||||
// Intimate Knowledge - construction of the viewer:
|
||||
//
|
||||
//
|
||||
// -BorderLayout
|
||||
// -JScrollPane
|
||||
// -Viewport
|
||||
// -JHEditorPane extends JEditorPane
|
||||
//
|
||||
//
|
||||
//
|
||||
Component[] components = contentViewer.getComponents();
|
||||
JScrollPane scrollPane = (JScrollPane) components[0];
|
||||
|
@ -218,12 +218,12 @@ class HelpViewSearcher {
|
|||
}
|
||||
|
||||
private void clearHighlights() {
|
||||
((TextHelpModel) helpModel).setHighlights(new DefaultHighlight[0]);
|
||||
((TextHelpModel) helpModel).removeAllHighlights();
|
||||
}
|
||||
|
||||
//==================================================================================================
|
||||
// Inner Classes
|
||||
//==================================================================================================
|
||||
//==================================================================================================
|
||||
|
||||
private class FindDialogAction extends AbstractAction {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue