Changeset 6387 for trunk


Ignore:
Timestamp:
2004-01-09T14:58:18+13:00 (20 years ago)
Author:
jmt12
Message:

Commenting

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

Legend:

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

    r6325 r6387  
    106106   
    107107    /** Destructor.
    108      * @see org.greenstone.gatherer.collection.CollectionModel */
     108     * @see org.greenstone.gatherer.Configuration
     109     * @see org.greenstone.gatherer.Gatherer
     110     * @see org.greenstone.gatherer.cdm.CollectionDesignManager
     111     * @see org.greenstone.gatherer.msm.GDMManager
     112     * @see org.greenstone.gatherer.msm.MetadataSetManager
     113     */
    109114    public void destroy() {
    110115    cdm.destroy();
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r6325 r6387  
    147147     * @see org.greenstone.gatherer.Configuration
    148148     * @see org.greenstone.gatherer.Gatherer
    149      * @see org.greenstone.gatherer.Message
    150149     * @see org.greenstone.gatherer.collection.Collection
    151150     * @see org.greenstone.gatherer.gui.BuildOptions
     
    161160    String args[];
    162161    if(Utility.isWindows()) {
    163         args = new String[4];
     162        args = new String[5];
    164163        args[0] = Gatherer.config.perl_path;
    165164        args[1] = "-S";
    166165        args[2] = Gatherer.config.getScriptPath() + "buildcol.pl";
    167         args[3] = collection.getName();
     166        args[3] = "-gli";
     167        args[4] = collection.getName();
    168168    }
    169169    else {
    170         args = new String[2];
     170        args = new String[3];
    171171        args[0] = Gatherer.config.getScriptPath() + "buildcol.pl";
    172         args[1] = collection.getName();
     172        args[1] = "-gli";
     173        args[2] = collection.getName();
    173174    }
    174175    args = ArrayTools.add(args, collection.build_options.getBuildValues());
     
    695696     * @see org.greenstone.gatherer.Configuration
    696697     * @see org.greenstone.gatherer.Gatherer
    697      * @see org.greenstone.gatherer.Message
    698698     * @see org.greenstone.gatherer.gui.BuildOptions
    699699     * @see org.greenstone.gatherer.shell.GShell
     
    703703     */
    704704    public void importCollection() {
    705     Gatherer.println("CollectionManager.importCollection()");
     705    importing = true;
    706706    if(!saved()) {
     707        Gatherer.println("CollectionManager.importCollection().forcesave");
    707708        import_monitor.saving();
    708709        // Force save.
     
    717718    }
    718719    else {
    719         importing = true;
     720        Gatherer.println("CollectionManager.importCollection()");
    720721        //check that we can remove the old index before starting import
    721722        File index_dir = new File(getCollectionIndex(), "temp.txt");
     
    767768        shell.addGShellListener(Gatherer.g_man.create_pane);
    768769        shell.start();
    769     }
    770     Gatherer.println("CollectionManager.importCollection().return");
    771     }
     770        Gatherer.println("CollectionManager.importCollection().return");
     771    }
     772    importing = false;
     773    }
     774
     775    /** Determine if we are currently in the middle of importing (and thus, in this case, we can't allow the log writer to exit). Boy was this a mission to track down. The cascade of crap rolls out something like this: Joe Schmo clicks 'Build Collection', which calls the importCollection() method above, which in turn saves the collection with a saveTask, which fires a collectionChanged message once its finished, which drives the list of logs shown on the create pane to update, which fires a itemChanged() event to the OptionsPane who dutifully tells the current log writer thread to finish up writing (all zero lines its been asked to write) and then die. Wereapon Joe Schmo gets a pretty log to look at, but it isn't actually being written to file so the next time he tries to view it faeces hits the air motion cooling device. Joy.
     776     * @return true if the gli is currently importing
     777     */
     778    public boolean isImporting() {
     779    return importing;
     780    }
     781
    772782    /** Attempts to load the given collection. Currently uses simple serialization of the collection class.
    773783     * @param location The path to the collection as a <strong>String</strong>.
    774784     * @see org.greenstone.gatherer.Configuration
    775785     * @see org.greenstone.gatherer.Gatherer
    776      * @see org.greenstone.gatherer.Message
    777786     * @see org.greenstone.gatherer.collection.Collection
    778787     * @see org.greenstone.gatherer.msm.MetadataSetManager
     
    11871196     * @param exit_after <i>true</i> to cause the Gatherer to exit once save is complete, <i>false</i> otherwise.
    11881197     * @see org.greenstone.gatherer.Gatherer
    1189      * @see org.greenstone.gatherer.Message
    11901198     * @see org.greenstone.gatherer.gui.GUIManager
    11911199     * @see org.greenstone.gatherer.gui.GConfigPane
  • trunk/gli/src/org/greenstone/gatherer/collection/ExportCollectionPrompt.java

    r6318 r6387  
    244244     * @see org.greenstone.gatherer.Configuration
    245245     * @see org.greenstone.gatherer.Gatherer
    246      * @see org.greenstone.gatherer.Message
    247246     * @see org.greenstone.gatherer.collection.Collection
    248247     * @see org.greenstone.gatherer.gui.BuildOptions
  • trunk/gli/src/org/greenstone/gatherer/file/FileOpenActionListener.java

    r6261 r6387  
    6060     * @param event A <strong>MouseEvent</strong> containing further information about the mouse click performed.
    6161     * @see org.greenstone.gatherer.Gatherer
    62      * @see org.greenstone.gatherer.collection.FileRecord
    63      * @see org.greenstone.gatherer.tree.GTree
     62     * @see org.greenstone.gatherer.file.FileNode
     63     * @see org.greenstone.gatherer.gui.tree.DragTree
    6464     */
    6565    public void mouseClicked(MouseEvent event) {
  • trunk/gli/src/org/greenstone/gatherer/util/DragGroup.java

    r5581 r6387  
    6868    /** The component currently in charge of drawing the ghost icon. Note that this isn't necessarily the only component that needs to repaint 'spoilt' screen real-estate as a side effect of the ghost. */
    6969    private DragComponent ghost_owner = null;
    70     /** The component where the drag began, so that extra information necessary for the drag can be garnered by the drop target, or so that focus can return to the source component if the drop is rejected.
    71      * @see org.greenstone.gatherer.tree.DragComponent#gainFocus
    72      * @see org.greenstone.gatherer.tree.DragComponent#loseFocus
    73      */
     70    /** The component where the drag began, so that extra information necessary for the drag can be garnered by the drop target, or so that focus can return to the source component if the drop is rejected. */
    7471    private DragTree drag_source = null;
    7572    /** The selected nodes, as determined when the drag begun. */
Note: See TracChangeset for help on using the changeset viewer.