rem: var item = this.mRuleOutliner.selectedItems[0]; 
add: var item = this.mRuleTree.selectedItems[0]; 
context:   cmdOpenSelectedFileInEditor: function()  {    var item = this.mRuleOutliner.selectedItems[0];    if (item)    {      var path = null;      var url = InsUtil.getDSProperty(this.mRuleDS, item.id, "FileURL");      if (url.substr(0, 6) == "chrome") {        // This is a tricky situation.  Finding the source of a chrome file means knowing where        // your build tree is located, and where in the tree the file came from.  Since files        // from the build tree get copied into chrome:// from unpredictable places, the best way        // to find them is manually.        //         // Solution to implement: Have the user pick the file location the first time it is opened.        //  After that, keep the result in some sort of registry to look up next time it is opened.        //  Allow this registry to be edited via preferences.      } else if (url.substr(0, 4) == "file") {        path = url;      }      if (path) {        try {          var exe = XPCU.createInstance("@mozilla.org/file/local;1", "nsILocalFile");          exe.initWithPath("c:\\windows\\notepad.exe");          exe      = exe.nsIFile;          var C    = Components;          var proc = C.classes['@mozilla.org/process/util;1'].createInstance                       (C.interfaces.nsIProcess);          proc.init(exe);          var pid = {};          proc.run(false, [url], 1, pid);        } catch (ex) {          alert("Unable to open editor.");        }      }    }  },
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/styleRules.js/buggy/extensions/inspector/resources/content/viewers/styleRules/styleRules.js