function appPickerBrowse() {
      var nsIFilePicker = Components.interfaces.nsIFilePicker;
      var fp = Components.classes["@mozilla.org/filepicker;1"].
               createInstance(nsIFilePicker);

      fp.init(window, this._incomingParams.title, nsIFilePicker.modeOpen);
      fp.appendFilters(nsIFilePicker.filterApps);
      
      var fileLoc = Components.classes["@mozilla.org/file/directory_service;1"]
                            .getService(Components.interfaces.nsIProperties);
      var startLocation;
//@line 190 "e:\builds\moz2_slave\rel-m-rel-xr-w32-bld\build\toolkit\components\apppicker\content\appPicker.js"
    startLocation = "ProgF"; // Program Files
//@line 198 "e:\builds\moz2_slave\rel-m-rel-xr-w32-bld\build\toolkit\components\apppicker\content\appPicker.js"
      fp.displayDirectory = 
        fileLoc.get(startLocation, Components.interfaces.nsILocalFile);
      
      if (fp.show() == nsIFilePicker.returnOK && fp.file) {
          var localHandlerApp = 
            Components.classes["@mozilla.org/uriloader/local-handler-app;1"].
            createInstance(Components.interfaces.nsILocalHandlerApp);
          localHandlerApp.executable = fp.file;

          this._incomingParams.handlerApp = localHandlerApp;
          window.close();
      }
      return true;
    }
/**
    * User browse for an app.
    */
User browse for an app.
User browse for an app .
function appPickerBrowse() {
      var nsIFilePicker = Components.interfaces.nsIFilePicker;
      var fp = Components.classes["@mozilla.org/filepicker;1"].
               createInstance(nsIFilePicker);
      fp.init(window, this._incomingParams.title, nsIFilePicker.modeOpen);
      fp.appendFilters(nsIFilePicker.filterApps);
      var fileLoc = Components.classes["@mozilla.org/file/directory_service;1"]
                            .getService(Components.interfaces.nsIProperties);
      var startLocation;
    startLocation = "ProgF"; 
      fp.displayDirectory = 
        fileLoc.get(startLocation, Components.interfaces.nsILocalFile);
      if (fp.show() == nsIFilePicker.returnOK && fp.file) {
          var localHandlerApp = 
            Components.classes["@mozilla.org/uriloader/local-handler-app;1"].
            createInstance(Components.interfaces.nsILocalHandlerApp);
          localHandlerApp.executable = fp.file;
          this._incomingParams.handlerApp = localHandlerApp;
          window.close();
      }
      return true;
    }
function appPickerBrowse ( ) { var nsIFilePicker = Components . interfaces . nsIFilePicker ; var fp = Components . classes [ "@mozilla.org/filepicker;1" ] . createInstance ( nsIFilePicker ) ; fp . init ( window , this . _incomingParams . title , nsIFilePicker . modeOpen ) ; fp . appendFilters ( nsIFilePicker . filterApps ) ; var fileLoc = Components . classes [ "@mozilla.org/file/directory_service;1" ] . getService ( Components . interfaces . nsIProperties ) ; var startLocation ; startLocation = "ProgF" ; fp . displayDirectory = fileLoc . get ( startLocation , Components . interfaces . nsILocalFile ) ; if ( fp . show ( ) == nsIFilePicker . returnOK && fp . file ) { var localHandlerApp = Components . classes [ "@mozilla.org/uriloader/local-handler-app;1" ] . createInstance ( Components . interfaces . nsILocalHandlerApp ) ; localHandlerApp . executable = fp . file ; this . _incomingParams . handlerApp = localHandlerApp ; window . close ( ) ; } return true ; }
User browse for an app.
User browse for an app .
//@line 190 "e:\builds\moz2_slave\rel-m-rel-xr-w32-bld\build\toolkit\components\apppicker\content\appPicker.js" // Program Files //@line 198 "e:\builds\moz2_slave\rel-m-rel-xr-w32-bld\build\toolkit\components\apppicker\content\appPicker.js"