this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler; 
try { this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler .QueryInterface(Components.interfaces.nsILocalHandlerApp); } catch (e) { this.chosenApp = null; } 
    initAppAndSaveToDiskValues: function() {        // Fill in helper app info, if there is any.        this.chosenApp = this.mLauncher.MIMEInfo.preferredApplicationHandler;        // Initialize "default application" field.        this.initDefaultApp();        // Fill application name textbox.        if (this.chosenApp && this.chosenApp.executable &&            this.chosenApp.executable.path) {            this.dialogElement( "appPath" ).value =               this.getPath(this.chosenApp.executable);        }        var useDefault = this.dialogElement( "useSystemDefault" );;        if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useSystemDefault &&            this.mReason != REASON_SERVERREQUEST) {            // Open (using system default).            useDefault.radioGroup.selectedItem = useDefault;        } else if (this.mLauncher.MIMEInfo.preferredAction == this.nsIMIMEInfo.useHelperApp &&                   this.mReason != REASON_SERVERREQUEST) {            // Open with given helper app.            var openUsing = this.dialogElement( "openUsing" );            openUsing.radioGroup.selectedItem = openUsing;        } else {            // Save to disk.            var saveToDisk = this.dialogElement( "saveToDisk" );            saveToDisk.radioGroup.selectedItem = saveToDisk;        }        // If we don't have a "default app" then disable that choice.        if ( !this.openWithDefaultOK() ) {            // Disable that choice.            useDefault.hidden = true;            // If that's the default, then switch to "save to disk."            if ( useDefault.selected ) {                useDefault.radioGroup.selectedItem = this.dialogElement( "saveToDisk" );            }        }        // Enable/Disable choose application button and textfield        this.toggleChoice();    },
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/325c15a53d4d209a203afb5a11e6bb8f2e922eee/nsHelperAppDlg.js/clean/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js