mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
Theme Editor: show/hide highlighted matches when showing/hiding "find bar"
This commit is contained in:
@@ -72,6 +72,22 @@ class FlatFindReplaceBar
|
||||
return findField.requestFocusInWindow();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addNotify() {
|
||||
super.addNotify();
|
||||
|
||||
// if showing bar, highlight matches in editor
|
||||
find();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeNotify() {
|
||||
super.removeNotify();
|
||||
|
||||
// if hiding bar, clear all highlighted matches in editor
|
||||
SearchEngine.markAll( textArea, new SearchContext() );
|
||||
}
|
||||
|
||||
private void findNext() {
|
||||
context.setSearchForward( true );
|
||||
find();
|
||||
|
||||
Reference in New Issue
Block a user