add: else if(buttonPressed == 1) { addEventsToCalendar( calendarEventArray, true ); } else if(buttonPressed == 2) { return false; } } 
context: function loadEventsFromFile(){   const nsIFilePicker = Components.interfaces.nsIFilePicker;      var fp = Components.classes["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker);        fp.init(window, "Open", nsIFilePicker.modeOpen);	   // fp.defaultString = "*.ics";   fp.defaultExtension = "ics"      fp.appendFilter( "Calendar Files", "*.ics" );      fp.show();   if (fp.file && fp.file.path.length > 0)    {      var aDataStream = readDataFromFile( fp.file.path );      var calendarEventArray = parseIcalData( aDataStream );      addEventsToCalendar( calendarEventArray );   }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/03dc4f0d2513043d10fc12240ed7b8e30ac9bcf7/calendarImportExport.js/clean/calendar/resources/content/calendarImportExport.js