Changeset 14360 for gli


Ignore:
Timestamp:
2007-08-09T16:38:13+12:00 (17 years ago)
Author:
xiao
Message:

modify to call format4gs3.getPureFormat() instead of getFeatureFormat() to be displayed in the format editor in GLI, so that when the format object is a classifier its options don't get displayed along with the pure format statements in the editor and hence wirriten into the config file.

File:
1 edited

Legend:

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

    r14043 r14360  
    440440                   
    441441                    if(msg.startsWith(XMLTools.WELLFORMED)) {
    442                         format.setFeatureFormat (Format4gs3.toOneLineFormat (format_str));
     442                        format.setPureFormat (Format4gs3.toOneLineFormat (format_str));
    443443                        format.update();
    444444                        format_list_model.refresh (format);
     
    480480                    ///ystem.err.println("There is an existing format!");
    481481                    format_list.setSelectedValue (format, true);
    482                     editor_textarea.setText (format.getFormatedFormat());
     482                    editor_textarea.setText (format.getPureFormat());
    483483                    editor_textarea.setCaretPosition (0);
    484484
     
    533533                        existingFormat (format.getFeatureName().startsWith (Classifier.CLASSIFIER_PREFIX));
    534534                       
    535                         editor_textarea.setText (format.getFormatedFormat());
     535                        editor_textarea.setText (format.getPureFormat());
    536536                        editor_textarea.setCaretPosition (0);
    537537                           
Note: See TracChangeset for help on using the changeset viewer.