Ignore:
Timestamp:
2005-02-15T15:39:48+13:00 (19 years ago)
Author:
mdewsnip
Message:

Made major rearrangements to the way path variables are calculated. This is to facilitate being able to specify a "-collectdir" argument to the GLI so one GLI installation can be used in a networked, multi-user situation. Hope I haven't broken anything!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r9035 r9045  
    621621    }
    622622    else if(user_choice == SimpleOpenCollectionDialog.BROWSE_OPTION) {
    623         File file;
     623        File collect_directory;
    624624        if (Gatherer.GS3) {
    625         if (Configuration.gsdl3_path != null) {
    626             file = new File(Utility.getSitesDir(Configuration.gsdl3_path));
    627         } else {
    628             file = new File(Utility.BASE_DIR);
    629         }
    630 
    631         } else {
    632 
    633         if(Configuration.gsdl_path != null) {
    634             file = new File(Utility.getCollectDir(Configuration.gsdl_path));
    635         }
    636         else {
    637             file = new File(Utility.BASE_DIR);
    638         }
    639         }
    640         OpenCollectionDialog chooser = new OpenCollectionDialog(file);
    641         file = null;
     625        collect_directory = new File(Utility.getSitesDir(Configuration.gsdl3_path));
     626        }
     627        else {
     628        collect_directory = new File(Gatherer.getCollectDirectoryPath());
     629        }
     630        OpenCollectionDialog chooser = new OpenCollectionDialog(collect_directory);
    642631        filename = chooser.getFileName();
    643632        chooser.destroy();
Note: See TracChangeset for help on using the changeset viewer.