Monday, November 08, 2010 at 12:02 AM.

system.verbs.builtins.Frontier.tools.commands.reInstallFrontTool

<<Changes
	<<1/15/02; 8:18:48 AM by DW
		<<Created. A developer working on a Tool needs a way to cause all the relevant parts of the Tool, its menu, RPC handlers, etc, to be re-installed. Luckily there's a single script that does this, so this new command is just a user interface on to that script. Bring a Tool the front and choose the Re-Install Frontmost Tool command from the Developers sub-menu of the Tools menu. After confirmation, the tool is re-installed. A big developer time-saver.
local (adr = window.frontmost ());
if not table.inGuestDatabase (adr) {
	scriptError ("Can't re-install the Tool because the frontmost window does not contain a guest database.")};
local (x = string.parseAddress (adr), f = x [1]);
if dialog.confirm ("Re-install the \"" + file.filefrompath (f) + "\" Tool?") {
	frontier.tools.install (f)}



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.