rem: var prefs = Components.classes["@mozilla.org/preferences-service;1"]. getService(Components.interfaces.nsIPrefService); var branch = prefs.getBranch("extensions."+MYSTRING+"."); var editor = branch.getCharPref("editor"); 
add: var editor = that.preferences.data.editor; 
context:   that.getEditor = function() {    var prefs = Components.classes["@mozilla.org/preferences-service;1"].      getService(Components.interfaces.nsIPrefService);    var branch = prefs.getBranch("extensions."+MYSTRING+".");    var editor = branch.getCharPref("editor");    // TODO: It'd be nice to have this use PATH.    // TODO: It should behave better the editor is unset or invalid.    // create an nsILocalFile for the executable    var file = Components.      classes["@mozilla.org/file/local;1"].      createInstance(Components.interfaces.nsILocalFile);    file.initWithPath(editor);    return file;  };
meta: 4463	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4463/facd4869ff3b083d21afb437ee474592eec22518/itsalltext.js/buggy/chrome/content/itsalltext.js