Changeset 5210


Ignore:
Timestamp:
2003-08-19T15:38:42+12:00 (21 years ago)
Author:
jmt12
Message:

Fix 203B147

Location:
trunk/gli/src/org/greenstone/gatherer/cdm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java

    r5164 r5210  
    406406        if(value.length() > 0) {
    407407        text.append(StaticStrings.SPACE_CHARACTER);
     408        // If the value contains a space, add speech marks
     409        if(value.indexOf(StaticStrings.SPACE_CHARACTER) != -1) {
     410            value = StaticStrings.QUOTE_CHARACTER + value + StaticStrings.QUOTE_CHARACTER;
     411        }
    408412        // Tokenize the string
    409413        StringTokenizer tokenizer = new StringTokenizer(value, ",");
  • trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java

    r5164 r5210  
    8989    setSize(SIZE);
    9090    setTitle(get("Title"));
    91     setJMenuBar(new SimpleMenuBar("7.0")); // can we tell whether
    92     // we are doing a classifier or plugin, to make the help
    93     //more specific??   
     91    setJMenuBar(new SimpleMenuBar("7.0")); // can we tell whether we are doing a classifier or plugin, to make the help more specific??
    9492    JPanel button_pane = new JPanel();
    9593    cancel = new JButton(get("General.Cancel"));
     
    285283        if(previous_owner == null) {
    286284        previous_owner = argument.getOwner();
    287         addHeader(previous_owner, colour_one);
     285        addHeader(previous_owner, colour_two);
    288286        }
    289287        // Otherwise if the owner of the control has changed since the last argument, toggle the colouring of the control.
     
    291289        coloured = !coloured;
    292290        previous_owner = argument.getOwner();
    293         addHeader(previous_owner, (coloured ? colour_two : colour_one));
     291        addHeader(previous_owner, (coloured ? colour_one : colour_two));
    294292        }
    295293        // Create
     
    783781    private class ListOption
    784782        implements Comparable {
    785                 /** The maximum length of this String version of this item. */
    786         private int MAX_DESC = 35;
     783        /** The maximum length of this String version of this item. */
     784        //private int MAX_DESC = 35;
    787785                /** The description of the value for this item. */
    788786        private String description = null;
     
    831829        public String toString() {
    832830        if(text == null) {
    833             if(description.length() >= MAX_DESC) {
    834             text = value + " - " + description.substring(0, MAX_DESC);
    835             }
    836             else {
    837             text = value + " - " + description;
    838             }
     831            //if(description.length() >= MAX_DESC) {
     832            //  text = value + " - " + description.substring(0, MAX_DESC);
     833            //}
     834            //else {
     835            text = value + " - " + description;
     836            //}
    839837        }
    840838        return text;
Note: See TracChangeset for help on using the changeset viewer.