Package groovy.console.ui.text
Class FindReplaceUtility
java.lang.Object
groovy.console.ui.text.FindReplaceUtility
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
dispose()
static String
static int
static String
static void
registerTextComponent
(JTextComponent textComponent) static void
static void
static void
showDialog
(boolean isReplace) static void
unregisterTextComponent
(JTextComponent textComponent)
-
Field Details
-
FIND_ACTION_COMMAND
- See Also:
-
REPLACE_ACTION_COMMAND
- See Also:
-
REPLACE_ALL_ACTION_COMMAND
- See Also:
-
CLOSE_ACTION_COMMAND
- See Also:
-
FIND_ACTION
-
-
Method Details
-
addTextListener
-
getLastAction
- Returns:
- the last action
-
getReplacementCount
public static int getReplacementCount()- Returns:
- the replacement count
-
getSearchText
- Returns:
- the search text
-
registerTextComponent
- Parameters:
textComponent
- the text component to listen to
-
removeTextListener
-
showDialog
public static void showDialog() -
showDialog
public static void showDialog(boolean isReplace) - Parameters:
isReplace
- show a replace dialog rather than a find dialog if true
-
unregisterTextComponent
- Parameters:
textComponent
- the text component to stop listening to
-
dispose
public static void dispose()
-