Ignore:
Timestamp:
2003-11-18T15:32:46+13:00 (21 years ago)
Author:
jmt12
Message:

Introduced two new codec transforms to correctly handle path information

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java

    r5809 r5877  
    233233      this.element = element;
    234234      // Transform the raw text to be GREENSTONE and DOM compatible - as that will be its next destination immediately after being added to the value model
    235       this.value = Codec.transform(value, Codec.REMOVE_SQUARE_BRACKET);
     235      this.value = Codec.transform(value, Codec.ENCODE_PATH);
     236      this.value = Codec.transform(this.value, Codec.REMOVE_SQUARE_BRACKET);
    236237      this.value = Codec.transform(this.value, Codec.TEXT_TO_DOM);
    237238       }
     
    11981199        TreePath path = tree.getSelectionPath();
    11991200        GValueNode node = (GValueNode) path.getLastPathComponent();
    1200         setSelectedValue(node.getFullPath(false));
     1201        setSelectedValue(node.getFullPath(true));
    12011202        }
    12021203    }
Note: See TracChangeset for help on using the changeset viewer.