/jEdit/tags/jedit-4-2-pre4/doclet/Clean_Up_Javadoc.bsh

# · Unknown · 11 lines · 11 code · 0 blank · 0 comment · 0 complexity · 1ca0c74b059c5759ceae3342c5a73209 MD5 · raw file

  1. fileDialogReturnValue = GUIUtilities.showVFSFileDialog(view,null,
  2. VFSBrowser.CHOOSE_DIRECTORY_DIALOG,false);
  3. if(fileDialogReturnValue != null)
  4. {
  5. SearchAndReplace.setSearchString("(<SCRIPT>(.|\n)*?</SCRIPT>|onload=\".*\")");
  6. SearchAndReplace.setReplaceString("");
  7. SearchAndReplace.setRegexp(true);
  8. SearchAndReplace.setSearchFileSet(new DirectoryListSet(
  9. fileDialogReturnValue[0],"*.html",true));
  10. SearchAndReplace.replaceAll(view);
  11. }