Package groovy.console.ui.text
Class FindReplaceUtility
java.lang.Object
groovy.console.ui.text.FindReplaceUtility
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voiddispose()static Stringstatic intstatic Stringstatic voidregisterTextComponent(JTextComponent textComponent) static voidstatic voidstatic voidshowDialog(boolean isReplace) static voidunregisterTextComponent(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()
-