Changeset 5675


Ignore:
Timestamp:
2003-10-17T09:45:22+13:00 (21 years ago)
Author:
jmt12
Message:

Extended tests on what folders are included in the dialog (so that neither files, nor folders which have nothing to do with collections, will turn up with the name 'Error' and the description 'Error'

File:
1 edited

Legend:

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

    r5571 r5675  
    198198        File collection_folder = collection_folders[i];
    199199        String collection_foldername = collection_folder.getName();
    200         if(!collection_foldername.equals(StaticStrings.MODEL_COLLECTION_NAME) && !collection_foldername.equals("CVS")) {
    201             data.add(new CollectionConfiguration(new File(collection_folder, Utility.CONFIG_DIR)));
     200        if(!collection_folder.isFile() && !collection_foldername.equals(StaticStrings.MODEL_COLLECTION_NAME)) {
     201           CollectionConfiguration collection_configuration = new CollectionConfiguration(new File(collection_folder, Utility.CONFIG_DIR));
     202           if(!collection_configuration.getName().equals(StaticStrings.ERROR_STR)) {
     203              data.add(collection_configuration);
     204           }
    202205        }
    203206        collection_foldername = null;
Note: See TracChangeset for help on using the changeset viewer.