[e8cba7]: doclet / Clean_Up_Javadoc.bsh Maximize Restore History

Download this file

Clean_Up_Javadoc.bsh    12 lines (11 with data), 465 Bytes

fileDialogReturnValue = GUIUtilities.showVFSFileDialog(view,null,
	VFSBrowser.CHOOSE_DIRECTORY_DIALOG,false);
if(fileDialogReturnValue != null)
{
	SearchAndReplace.setSearchString("(<SCRIPT type=\"text/javascript\">(.|\n)*?</SCRIPT>|onload=\".*\")");
	SearchAndReplace.setReplaceString("");
	SearchAndReplace.setRegexp(true);
	SearchAndReplace.setSearchFileSet(new DirectoryListSet(
		fileDialogReturnValue[0],"*.html",true));
	SearchAndReplace.replaceAll(view);
}