rem: if (gList.selectedItems && gList.selectedItems[0]) { var uri = gList.selectedItems[0].id; 
add: if (gList.currentIndex >= 0) { var uri = gList.view.getResourceAtIndex(gList.currentIndex).Value; 
context: function editType(){  if (gList.selectedItems && gList.selectedItems[0]) {    var uri = gList.selectedItems[0].id;    var handlerOverride = new HandlerOverride(uri);    window.openDialog("chrome://communicator/content/pref/pref-applications-edit.xul", "appEdit", "chrome,modal=yes,resizable=no", handlerOverride);    selectApplication();  }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/ebd6ce725d3353b8bade824db68d831c7f5ec37b/pref-applications.js/clean/suite/common/pref/pref-applications.js