rem: .createBundle( "chrome: 
add: .createBundle( "chrome: 
context:     promptForSaveToFile: function(aContext, aDefaultFile, aSuggestedFileExtension) {        var result = "";        // Use file picker to show dialog.        var nsIFilePicker = Components.interfaces.nsIFilePicker;        var picker = Components.classes[ "@mozilla.org/filepicker;1" ]                       .createInstance( nsIFilePicker );        var bundle = Components.classes[ "@mozilla.org/intl/stringbundle;1" ]                       .getService( Components.interfaces.nsIStringBundleService )                           .createBundle( "chrome://global/locale/helperAppLauncher.properties");        var windowTitle = bundle.GetStringFromName( "saveDialogTitle" );                var parent = aContext                        .QueryInterface( Components.interfaces.nsIInterfaceRequestor )                        .getInterface( Components.interfaces.nsIDOMWindowInternal );        picker.init( parent, windowTitle, nsIFilePicker.modeSave );        picker.defaultString = aDefaultFile;        var wildCardExtension = "*";        if ( aSuggestedFileExtension ) {            wildCardExtension += aSuggestedFileExtension;            picker.appendFilter( wildCardExtension, wildCardExtension );        }        picker.appendFilters( nsIFilePicker.filterAll );        // Pull in the user's preferences and get the default download directory.        var prefs = Components.classes[ "@mozilla.org/preferences;1" ]                        .getService( Components.interfaces.nsIPref );        try {            var startDir = prefs.getFileXPref( "browser.download.dir" );            if ( startDir.exists() ) {                picker.displayDirectory = startDir;            }        } catch( exception ) {        }        var dlgResult = picker.show();        if ( dlgResult == nsIFilePicker.returnCancel ) {            throw Components.results.NS_ERROR_FAILURE;        }        // be sure to save the directory the user chose as the new browser.download.dir        result = picker.file;        if ( result ) {            var newDir = result.parent;            prefs.setFileXPref( "browser.download.dir", newDir );        }        return result;    },
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2295557b9c26c43c4119ff94d4947eaa6f44f553/nsHelperAppDlg.js/clean/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js