Thursday, April 07, 2011 at 10:00 AM.

system.verbs.builtins.opmlEditor.updateOpenTools

on updateOpenTools () {
	<<Changes
		<<4/7/11; 8:14:42 AM by DW
			<<Created.
	local (adrfile, fname, toolname, suitename, s = "", startticks = clock.ticks ());
	for adrfile in @system.compiler.files {
		fname = file.filefrompath (nameof (adrfile^));
		toolname = fname - ".root";
		suitename = toolname + "Suite";
		if defined (adrfile^.[suitename]) { //it's a tool
			frontier.tools.updateme (address (suitename));
			s = s + fname + ", "}};
	if sizeof (s) > 0 {
		s = "Updated " + string.mid (s, 1, sizeof (s) - 2) + ".";
		<<scratchpad.updatefilenames = s
		log2.add ("OPML Editor", "Tool Update", s, startticks)}};
bundle { //test code
	updateOpenTools ()}



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.