Changeset 4513 for trunk


Ignore:
Timestamp:
2003-06-09T11:50:47+12:00 (21 years ago)
Author:
jmt12
Message:

* empty log message *

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r4446 r4513  
    245245        }
    246246
    247                 // Before we create the CollectionDesignManager we have to check if we are basing it upon some other collection.
     247        // Before we create the CollectionDesignManager we have to check if we are basing it upon some other collection.
    248248        if(base_collection_directory != null) {
    249249        // If so our first step is to correctly generate an import profile for our collection from this base collection.
     
    270270            special_case = SPECIAL_DLS;
    271271            String demo_directory = (new File(base_collection_directory.getParentFile(), Utility.COLLECTION_DEMO_DIRECTORY)).getAbsolutePath();
     272            System.err.println("Demo directory = " + demo_directory);
    272273            String dls_directory = (new File(base_collection_directory.getParentFile(), Utility.COLLECTION_DLS_DIRECTORY)).getAbsolutePath();
     274            System.err.println("DLS directory = " + dls_directory);
    273275            // Add the dls.mds
    274276            collection.msm.importMDS(new File(Utility.METADATA_DIR + Utility.DLS_MDS), false);
     
    589591    // We add their import and gimport directories, but only if its not our current collection.
    590592    for(int i = 0; cols != null && i < cols.length; i++) {
    591         if(collection == null || !current_collection_directory.equals(cols[i].getAbsolutePath())) {
     593        ///ystem.err.println(current_collection_directory);
     594        ///ystem.err.println(cols[i].getName() + " = modelcol");
     595        if(collection == null || (!current_collection_directory.equals(cols[i].getAbsolutePath()) && !cols[i].getName().equals("modelcol"))) {
    592596        File dirs[] = cols[i].listFiles();
    593597        ArrayTools.sort(dirs);
     
    11171121    String collection_path = (base_cfg.getParentFile().getParentFile()).getAbsolutePath();
    11181122
     1123    System.err.println("Searching for " + collection_path);
    11191124    HashMap mappings = collection.msm.profiler.getActions(collection_path);
     1125    if(mappings == null) {
     1126        System.err.println("How is this happening?");
     1127    }
    11201128
    11211129    // Now read in base_cfg line by line, parsing important onces and/or replacing them with information pertinent to our collection. Each line is then written back out to the new collect.cfg file.
  • trunk/gli/src/org/greenstone/gatherer/file/FileNode.java

    r4398 r4513  
    245245            files = tools.filter(files, filters[i].filter, filters[i].exclude);
    246246        }
    247         // If this node just happens to be the greenstone collection
     247        // If this node just happens to be the greenstone collection directory
    248248        if(Gatherer.c_man != null && Gatherer.c_man.ready() && file.equals(new File(Utility.getCollectionDir(Gatherer.config.gsdl_path)))) {
    249249            // Preclude the directory of any open collection
    250250            String collection_name = Gatherer.c_man.getCollection().getName();
    251             for(int j = 0; collection_name != null && j < files.length; j++) {
    252             if(files[j].getName().equals(collection_name)) {
     251            for(int j = 0; j < files.length; j++) {
     252            System.err.println("Does " + files[j].getName() + " equal " + collection_name + "?");
     253            if(files[j].getName().equals(collection_name) || files[j].getName().equals("modelcol")) {
    253254                // Remove the offending directory
    254255                files = ArrayTools.remove(files, j);
    255                 collection_name = null; // Only have to do this once.
    256256            }
    257257            }
  • trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java

    r4367 r4513  
    9898    ///ystem.err.println("Show " + full_property + ": " + Gatherer.config.get(full_property, false));
    9999    if(Gatherer.config.get(full_property, false)) {
    100                 // We only show if the warning has not been disabled.
     100        // We only show if the warning has not been disabled.
    101101        show();
    102102    }
  • trunk/gli/src/org/greenstone/gatherer/valuetree/GValueModel.java

    r4405 r4513  
    112112        value_node = new GValueNode(new_subject);
    113113        // Insert it. If position is still -1, append it to the end of subjects children.
    114         SynchronizedTreeModelTools.insertNodeInto(this, subject, value_node);
     114        //SynchronizedTreeModelTools.insertNodeInto(this, subject, value_node);
     115        insertNodeInto(value_node, subject, 0);
    115116        // Inform listeners that we've changed.
    116117        Gatherer.c_man.getCollection().msm.fireValueChanged(element, null, this);
     
    190191
    191192    public void removeValue(GValueNode child) {
    192     SynchronizedTreeModelTools.removeNodeFromParent(this, child);
     193    //SynchronizedTreeModelTools.removeNodeFromParent(this, child);
     194    removeNodeFromParent(child);
    193195    Gatherer.c_man.getCollection().msm.fireValueChanged(new ElementWrapper(child.getElement()), null, this);
    194196    }
Note: See TracChangeset for help on using the changeset viewer.