rem:   name = name.toLowerCase(); var oCommand = this._loadedCommands[name]; if(oCommand){ return oCommand; }  switch(name){ case 'htmltoggle':   oCommand = new dojo.widget.Editor2BrowserCommand(name); break; case 'formatblock': oCommand = new dojo.widget.Editor2FormatBlockCommand(name); break; case 'anchor': oCommand = new dojo.widget.Editor2Command(name); break;   case 'createlink': oCommand = new dojo.widget.Editor2DialogCommand(name, {contentFile: "dojo.widget.Editor2Plugin.CreateLinkDialog", contentClass: "Editor2CreateLinkDialog", title: "Insert/Edit Link", width: "300px", height: "200px"}); break; case 'insertimage': oCommand = new dojo.widget.Editor2DialogCommand(name, {contentFile: "dojo.widget.Editor2Plugin.InsertImageDialog", contentClass: "Editor2InsertImageDialog", title: "Insert/Edit Image", width: "400px", height: "270px"}); break;  default: var curtInst = this.getCurrentInstance(); if((curtInst && curtInst.queryCommandAvailable(name)) || (!curtInst && dojo.widget.Editor2.prototype.queryCommandAvailable(name))){ oCommand = new dojo.widget.Editor2BrowserCommand(name); }else{ dojo.debug("dojo.widget.Editor2Manager.getCommand: Unknown command "+name); return; } } this._loadedCommands[name] = oCommand; return oCommand; }, 
add:  if(this._loadedCommands[name]){ return this._loadedCommands[name]; } var cmd = dojo.widget.Editor2Manager.getCommand(this, name); this._loadedCommands[name] = cmd; return cmd; }, 
context: 	getCommand: function(/*String*/name){		// summary: Return Editor2 command with the given name		// name: name of the command (case insensitive)		name = name.toLowerCase();		var oCommand = this._loadedCommands[name];		if(oCommand){			return oCommand;		}		switch(name){			case 'htmltoggle':				//Editor2 natively provide the htmltoggle functionalitity				//and it is treated as a builtin command				oCommand = new dojo.widget.Editor2BrowserCommand(name);				break;			case 'formatblock':				oCommand = new dojo.widget.Editor2FormatBlockCommand(name);				break;			case 'anchor':				oCommand = new dojo.widget.Editor2Command(name);				break;			//dialog command			case 'createlink':				oCommand = new dojo.widget.Editor2DialogCommand(name,						{contentFile: "dojo.widget.Editor2Plugin.CreateLinkDialog",							contentClass: "Editor2CreateLinkDialog",							title: "Insert/Edit Link", width: "300px", height: "200px"});				break;			case 'insertimage':				oCommand = new dojo.widget.Editor2DialogCommand(name,						{contentFile: "dojo.widget.Editor2Plugin.InsertImageDialog",							contentClass: "Editor2InsertImageDialog",							title: "Insert/Edit Image", width: "400px", height: "270px"});				break;			// By default we assume that it is a builtin simple command.			default:				var curtInst = this.getCurrentInstance();				if((curtInst && curtInst.queryCommandAvailable(name)) ||					(!curtInst && dojo.widget.Editor2.prototype.queryCommandAvailable(name))){					oCommand = new dojo.widget.Editor2BrowserCommand(name);				}else{					dojo.debug("dojo.widget.Editor2Manager.getCommand: Unknown command "+name);					return;				}		}		this._loadedCommands[name] = oCommand;		return oCommand;	},
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/Editor2.js/clean/www/resources/dojo-ajax/src/widget/Editor2.js