Refresh view after each SearchAndReplace pair in a macro loop
Submitted by Sunday, 7 February, 2010 - 23:18
on
I have a macro with a number of SearchAndReplace steps in a loop.
I am not seeing the step-by-step changes in buffer view after each SearchandReplace
until macro end end.
What command can I add to force the refresh of TextArea after each pass of SearchAndReplace?
SearchAndReplace.setSearchString(textToSearch);
SearchAndReplace.setReplaceString(textToReplace);
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);
I am not seeing the step-by-step changes in buffer view after each SearchandReplace
until macro end end.
What command can I add to force the refresh of TextArea after each pass of SearchAndReplace?
SearchAndReplace.setSearchString(textToSearch);
SearchAndReplace.setReplaceString(textToReplace);
SearchAndReplace.setBeanShellReplace(false);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.replaceAll(view);