Changeset 28216 for main


Ignore:
Timestamp:
2013-09-05T11:29:36+12:00 (11 years ago)
Author:
kjdon
Message:

if there are no indexoptions in collect config file, then don't set them all to be on. otherwise, one can never unset them all

File:
1 edited

Legend:

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

    r18886 r28216  
    265265       
    266266        // set up the checked/unchecked boxes
    267         if (options_model.getSize()==0) {
    268             // select all
    269             stem_checkbox.setSelected(true);
    270             options_model.addOption(StaticStrings.STEM_OPTION_STR);
    271             casefold_checkbox.setSelected(true);
    272             options_model.addOption(StaticStrings.CASEFOLD_OPTION_STR);
    273             if (accentfold_checkbox.isEnabled()) {
    274             accentfold_checkbox.setSelected(true);
    275             options_model.addOption(StaticStrings.ACCENTFOLD_OPTION_STR);
    276             }
    277             separate_cjk_checkbox.setSelected(false);
    278         }
    279         else {
    280267            // we'll assume that the config file has got it correct
     268        // no more setting all to on if nothing in config file
     269        if (options_model.getSize()!=0) {
    281270            if (options_model.getOption(StaticStrings.STEM_OPTION_STR)!=null) {
    282271            stem_checkbox.setSelected(true);
Note: See TracChangeset for help on using the changeset viewer.