Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.1-beta-3
-
Fix Version/s: 1.5
-
Component/s: Groovy Console
-
Labels:None
Description
The Console text editor has some find/replace functionality. Find ctrl+f, replace ctrl+h, find next F3, find previous shift-F3.
These need to be slightly re-written so that the actions can be added to the console menu. Also, they need to work when selected from the menu.
Also, the find functionality would be nice in the output area, so the menu should be sensitive to which area last had mouse focus (or only search output if the output is the permanent focus owner)
Added the following items to the Edit drop down menu of the Groovy Console:
Find... Ctrl+F - mnemonic is F
Find Next F3 - mnemonic is N
Find Previous Shift+F3 - mnemonic is V
Replace... Ctrl+H - mnemonic is E
I checked and none of the accelerators or mnemonics conflict with existing items.
Separator bars were added around the 4 to separate them from the rest of the menu.
This does not search the output area.
No changes were needed to FindReplaceUtility.java
I tested in Windows XP only.
The implementation of the findPrevious works, but there may be a cleaner way to do this.
I found two defects in the process, and this change did not introduce them: 1) if Find window is open when Frame is closed, the window remains open and the process doesn't die, and 2) Find previous does not match the first occurrence of the pattern if that pattern is at the start of the text area. I'll create separate defects for these.
Please let me know if anything else needs to change.