From e8f09af0ff0f5278d9b095ac8077f3cac274adb5 Mon Sep 17 00:00:00 2001 From: Peter Froud Date: Fri, 2 Jun 2023 16:29:35 -0700 Subject: [PATCH] Add method setSearchListener() to dialogs --- .../src/main/java/org/fife/rsta/ui/search/FindDialog.java | 8 ++++++++ .../main/java/org/fife/rsta/ui/search/ReplaceDialog.java | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/RSTAUI/src/main/java/org/fife/rsta/ui/search/FindDialog.java b/RSTAUI/src/main/java/org/fife/rsta/ui/search/FindDialog.java index 1e48e25..84f0f28 100644 --- a/RSTAUI/src/main/java/org/fife/rsta/ui/search/FindDialog.java +++ b/RSTAUI/src/main/java/org/fife/rsta/ui/search/FindDialog.java @@ -228,6 +228,14 @@ public void updateUI() { } + /** + * @param listener The component that listens for {@link SearchEvent}s. + */ + public void setSearchListener(SearchListener listener){ + this.searchListener = listener; + } + + /** * Listens for changes in the text field (find search field). */ diff --git a/RSTAUI/src/main/java/org/fife/rsta/ui/search/ReplaceDialog.java b/RSTAUI/src/main/java/org/fife/rsta/ui/search/ReplaceDialog.java index 64f4942..2dd0de8 100644 --- a/RSTAUI/src/main/java/org/fife/rsta/ui/search/ReplaceDialog.java +++ b/RSTAUI/src/main/java/org/fife/rsta/ui/search/ReplaceDialog.java @@ -508,6 +508,14 @@ public void updateUI() { } + /** + * @param listener The component that listens for {@link SearchEvent}s. + */ + public void setSearchListener(SearchListener listener){ + this.searchListener = listener; + } + + /** * Listens for changes in the text field (find search field). */