code: function(result) {
  						if (typeof result === "object" && result) { //$NON-NLS-0$
  							if (result.text) {
  								editor.setText(result.text);
  							}
  							if (result.selection) {
  								if (editor.setSelection) {
  									editor.setSelection(result.selection.start, result.selection.end, true /*scroll to*/);
  								}
  								editor.focus();
  							}
  						} else if (typeof result === 'string') { //$NON-NLS-0$
  							editor.setText(result, selection.start, selection.end, true /*scroll to*/);
  							if (editor.setSelection) {
  								editor.setSelection(selection.start, selection.start + result.length);
  							}
  							editor.focus();
  						}
  					}
docs: /*
  Processes the result object from old run() API.
  @deprecated: command services should implement execute() instead.