Changeset 4673


Ignore:
Timestamp:
2003-06-16T10:03:49+12:00 (21 years ago)
Author:
jmt12
Message:

* empty log message *

Location:
trunk/gli
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/classes/dictionary.properties

    r4646 r4673  
    118118CDM.ClassifierManager.Assigned:Currently Assigned Classifiers
    119119CDM.ClassifierManager.Classifier:Select classifier to add:
    120 CDM.ClassifierManager.Classifier_XML_Parse_Failed:GLI has been unable to determine the arguments for the {0}\nclassifier.  Please ensure that the classifier in question\nprovides the  -xml flag by running the classinfo.pl script\nsimilar to the  description of the  pluginfo.pl  script in\nsection   2.1  of   the   Greenstone   Developers   Guide.
     120CDM.ClassifierManager.Classifier_XML_Parse_Failed:Unable to determine the arguments for the {0}\nclassifier.  Please ensure that the classifier in question\nprovides the  -xml flag by running the classinfo.pl script\nsimilar to the  description of the  pluginfo.pl  script in\nsection   2.1  of   the   Greenstone   Developers   Guide.
    121121CDM.ClassifierManager.Configure:Configure Selected Classifier
    122122CDM.ClassifierManager.Controls:Editing Controls
     
    210210CDM.PlugInManager.Move_Up:Move Up
    211211CDM.PlugInManager.PlugIn:Select plugin to add:
    212 CDM.PlugInManager.PlugIn_XML_Parse_Failed:GLI has been unable to determine the arguments for the {0}\nplugin. Please ensure that the plugin in question provides\nthe  -xml flag by running the pluginfo.pl script described\nin  section  2.1  of  the   Greenstone  Developers  Guide.
     212CDM.PlugInManager.PlugIn_XML_Parse_Failed:Unable to determine the arguments for the {0}\nplugin. Please ensure that the plugin in question provides\nthe  -xml flag by running the pluginfo.pl script described\nin  section  2.1  of  the   Greenstone  Developers  Guide.
    213213CDM.PlugInManager.Remove:Remove Selected Plugin
    214214CDM.PlugInManager.Title:{39}{46}Plugin Selection & Configuration{47}{34}
     
    415415#
    416416#******* File Associations dialog **********
     417FileAssociationDialog.Add:Add
    417418FileAssociationDialog.Batch_File:Batch files
    418419FileAssociationDialog.Browse:Browse
    419420FileAssociationDialog.Browse_Title:Choose Application
    420 FileAssociationDialog.Command:Open using:
     421FileAssociationDialog.Command:Launch command:
    421422FileAssociationDialog.Command_File:Command files
    422423FileAssociationDialog.Executable_File:Executable files
    423424FileAssociationDialog.Extension:For files ending:
     425FileAssociationDialog.Instructions:Use this dialog to set what external programs are used to view a certain file-type, and what command is sent to launch this program.\nTo select a current file association, choose an extension from the 'For file's ending' drop down list.\nTo add a new file-type, type its extension in 'For file's ending'.\nTo add or modify a launch command, type the new command in 'Launch command' or click 'Browse' to search the file system for an appropriate program. Use the special string '%1' to indicate where the name of the file to be opened should be inserted, e.g. "C:\\Windows\\System\\MSPaint.exe %1". '%1' will be appended to the end of a command if not otherwise specified.
    424426FileAssociationDialog.Title:Edit File Associations
    425427#*******************
     
    767769MSMPrompt.Select_Element_Element:Select Element:
    768770MSMPrompt.Select_Element_Ignore:Ignore
    769 MSMPrompt.Select_Element_Instructions:The metadata element {0} cannot be automatically imported into the collection. Select a metadata set and either:\n(1) press 'Add' to add the metadata to that set, or\n(2) choose an element and press 'Merge' to import {0} metadata to this element.
     771MSMPrompt.Select_Element_Instructions:The metadata element {0} cannot be automatically imported into the collection. Select a metadata set and either:\n(1) press 'Add' to add the metadata to that set (only available if no element with that name already exists), or\n(2) choose an element and press 'Merge' to import {0} metadata to this element.
    770772MSMPrompt.Select_Element_Merge:Merge
    771773MSMPrompt.Select_Element_Original:Original element name:
  • trunk/gli/classes/xml/config.xml

    r4644 r4673  
    9393    <!-- Warnings can be disabled by the user. -->
    9494    <!-- Do we show a warning message when a user attempts to add folder level metadata. [true] -->
    95     <Argument name="warning.DirectoryLevelMetadataPrompt">true</Argument>
     95    <Argument name="warning.DirectoryLevelMetadata">true</Argument>
    9696    <Argument name="warning.InheritedMetadata">true</Argument>
    9797    <Argument name="warning.MissingEXEC">true</Argument>
  • trunk/gli/src/org/greenstone/gatherer/Dictionary.java

    r4363 r4673  
    203203        Gatherer.println("Missing value for key: " + key);
    204204        }
     205        //e.printStackTrace();
    205206        return key;
    206207    }
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r4608 r4673  
    708708    public void importCollection() {
    709709    if(!saved()) {
    710                 // Force save.
     710        // Force save.
    711711        try {
    712712        SaveCollectionTask save_task = new SaveCollectionTask(collection);
  • trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java

    r4551 r4673  
    418418     */
    419419    public void actionPerformed(ActionEvent event) {
    420                 // First we force the build options to be updated if we haven't already.
     420        // First we force the build options to be updated if we haven't already.
    421421        tree.valueChanged(null);
    422                 // Now go about building.
     422        // Now go about building.
    423423        build_button.setEnabled(false);
    424424        cancel_button.setEnabled(true);
    425                 // Create a new process log, and place it.
     425        // Create a new process log, and place it.
    426426        if(scroll_log != null) {
    427427        progress_pane.remove(scroll_log);
     
    430430        scroll_log = new JScrollPane(process_log);
    431431        progress_pane.add(scroll_log, BorderLayout.CENTER);
    432                 // clear the log list and message_log
     432        // clear the log list and message_log
    433433        options_pane.resetLogList();
    434                 // Change the view.
     434        // Change the view.
    435435        processing = true;
    436436        card_layout.show(main_pane, PROGRESS);
    437                 // Reset the stop flag in all the process monitors, just incase.
     437        // Reset the stop flag in all the process monitors, just incase.
    438438        ((GBuildProgressMonitor)build_monitor).reset();
    439439        copy_monitor.setStop(false);
    440440        import_monitor.setStop(false);
    441                 // Set removeold automatically.
    442         if(Gatherer.c_man.ready() && !Gatherer.c_man.built()) {
     441        // Set removeold automatically.
     442        if(Gatherer.c_man.ready() && Gatherer.c_man.built()) {
    443443        Gatherer.c_man.getCollection().build_options.setImportValue("removeold", true, null);
    444444        }
    445                 // Call CollectionManagers method to build collection.
     445        // Call CollectionManagers method to build collection.
    446446        Gatherer.c_man.importCollection();
    447447    }
  • trunk/gli/src/org/greenstone/gatherer/msm/MSMUtils.java

    r4564 r4673  
    712712    element.setAttribute("occurances", new_value.toString());
    713713    }
     714
     715    /** Set the #text node value of some element.
     716     * @param element the Element whose value we wish to set
     717     * @param value the new value for the element as a String
     718     */
     719    static final public void setValue(Element element, String value) {
     720    // Remove any existing child node(s)
     721    while(element.hasChildNodes()) {
     722        element.removeChild(element.getFirstChild());
     723    }
     724    // Add new text node.
     725    element.appendChild(element.getOwnerDocument().createTextNode(value));
     726    }
     727
    714728    /** This method also traverses the tree, but this one is used to gather all the values and aliases at once, and to 'prune' the tree if necessary.
    715729     * @param current The current root <strong>Node</strong> of this AssignedValues tree subtree.
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java

    r4661 r4673  
    915915    // And make back ups of all existing metadata set files.
    916916    File temp[] = file.listFiles();
    917     for(int i = temp.length - 1; i >= 0; i--) {
     917    for(int i = 0; temp != null && i < temp.length; i++) {
    918918        if(temp[i].getName().endsWith(".mds") || temp[i].getName().endsWith(".mdv")) {
    919919        File backup = new File(temp[i].getAbsolutePath() + "~");
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r4589 r4673  
    7070    static final public String CFG_COLLECTIONMETA_COLLECTIONEXTRA = "collectionmeta collectionextra";
    7171    static final public String CFG_COLLECTIONMETA_ICONCOLLECTION = "collectionmeta iconcollection";
    72     static final public String CFG_COLLECTIONMETA_ICONCOLLECTIONSMALL = "collectionmeta iconcollectionsmall";
    7372    static final public String CFG_CLASSIFY = "classify";
    7473    static final public String CFG_CLASSIFY_BUTTONNAME = "-buttonname";
     
    104103    /** Definition of an important directory name, in this case the private web cache directory for the collection. */
    105104    static final public String GCACHE_DIR = "gcache" + File.separator;
    106     /** The archive file where the GLI can find dynamically loaded classes. */
    107105    static final public String GLI_ARCHIVE = "GLI.jar";
    108106    /** Definition of an important directory name, in this case the location of help documentation. */
     
    145143    static final public String WELCOME_DIR = BASE_DIR + "welcome" + File.separator;
    146144    static final public String WORKSPACE_TREE = "Workspace";
     145    static final public String XML_DIRECTORY = "xml" + File.separator;
    147146    // These are out of alphabetic order to avoid forward reference error.
    148147    /** The default icon to produce a 'help-icon' sized blank space before a menu entry. */
Note: See TracChangeset for help on using the changeset viewer.