Changeset 5860


Ignore:
Timestamp:
2003-11-17T13:57:57+13:00 (20 years ago)
Author:
mdewsnip
Message:

Tidied up what should be shown/hidden in the workspace tree. Katherine and I decided that the modelcol directory should be hidden from the "Greenstone Collections" folder, since this is intended to show the "real" collections in the library.

We decided not to hide it in the "Local Filespace" tree, however, since this should be an accurate view of the file system and therefore not hide anything.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileNode.java

    r5854 r5860  
    244244        File cols[] = start.listFiles();
    245245        ArrayTools.sort(cols);
    246         // We add their import directories, but only if its not our current collection, nor the model collection.
     246        // We add their import directories, except for the model collection
    247247        for(int i = 0; cols != null && i < cols.length; i++) {
    248             if(!cols[i].getName().equals(StaticStrings.MODEL_COLLECTION_NAME) && (!Gatherer.c_man.ready() || !Gatherer.c_man.getCollectionDirectory().equals(cols[i].getAbsolutePath()))) {
     248            if (!cols[i].getName().equals(StaticStrings.MODEL_COLLECTION_NAME)) {
    249249            File dirs[] = cols[i].listFiles();
    250250            ArrayTools.sort(dirs);
     
    276276            }
    277277            //}
    278 //              // If this node just happens to be the greenstone collection directory
    279 //              if(Gatherer.c_man != null && Gatherer.c_man.ready() && file.equals(new File(Utility.getCollectionDir(Gatherer.config.gsdl_path)))) {
    280 //              // Preclude the directory of any open collection
    281 //              String collection_name = Gatherer.c_man.getCollection().getName();
    282 //              for(int j = 0; j < files.length; j++) {
    283 //                  ///ystem.err.println("Does " + files[j].getName() + " equal " + collection_name + "?");
    284 //                  if(files[j].getName().equals(collection_name)) {
    285 //                  // Remove the offending directory
    286 //                  files = ArrayTools.remove(files, j);
    287 //                  }
    288 //              }
    289 //              }
     278
    290279            // Finally remove any files whose canonical path do not match their absolute one (ie symbolic links). We only do this test under linux, because under windows there is no such thing as a symbolic link, and instead we suffer difficulties with the 16bit truncated file paths not being the same as the canonical ones (i.e Program Files => Progra~1).
    291280            /* This test to eliminate infinite recursions causes more problems than it solves
Note: See TracChangeset for help on using the changeset viewer.