Changeset 36243


Ignore:
Timestamp:
2022-06-07T10:26:14+12:00 (23 months ago)
Author:
kjdon
Message:

solr button should only be available for gs3

File:
1 edited

Legend:

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

    r36175 r36243  
    185185        setTitle(Dictionary.get("CDM.BuildTypeManager.Title"));
    186186            this.setComponentOrientation(Dictionary.getOrientation());
     187
     188        BuildTypeButtonListener btbl = new BuildTypeButtonListener();
     189
    187190        mg_button = new JRadioButton(BUILD_TYPE_MG_STR);
    188191            mg_button.setComponentOrientation(Dictionary.getOrientation());
    189192        mg_button.setActionCommand(BUILD_TYPE_MG);
     193        mg_button.addActionListener(btbl);
     194
    190195        mgpp_button = new JRadioButton(BUILD_TYPE_MGPP_STR);
    191196            mgpp_button.setComponentOrientation(Dictionary.getOrientation());
    192197        mgpp_button.setActionCommand(BUILD_TYPE_MGPP);
     198        mgpp_button.addActionListener(btbl);
     199
    193200        lucene_button = new JRadioButton(BUILD_TYPE_LUCENE_STR);
    194201            lucene_button.setComponentOrientation(Dictionary.getOrientation());
    195202        lucene_button.setActionCommand(BUILD_TYPE_LUCENE);
    196         solr_button = new JRadioButton(BUILD_TYPE_SOLR_STR);
    197             solr_button.setComponentOrientation(Dictionary.getOrientation());
    198         solr_button.setActionCommand(BUILD_TYPE_SOLR);
    199        
    200         BuildTypeButtonListener btbl = new BuildTypeButtonListener();
    201         mg_button.addActionListener(btbl);
    202         mgpp_button.addActionListener(btbl);
    203203        lucene_button.addActionListener(btbl);
    204         solr_button.addActionListener(btbl);
     204
     205        if (Gatherer.GS3) {
     206        solr_button = new JRadioButton(BUILD_TYPE_SOLR_STR);
     207        solr_button.setComponentOrientation(Dictionary.getOrientation());
     208        solr_button.setActionCommand(BUILD_TYPE_SOLR);
     209        solr_button.addActionListener(btbl);
     210        }
     211       
    205212
    206213        ButtonGroup build_type_group = new ButtonGroup();
    207             build_type_group.add(solr_button);
     214        if (Gatherer.GS3) {
     215        build_type_group.add(solr_button);
     216        }
    208217        build_type_group.add(lucene_button);
    209218        build_type_group.add(mgpp_button);
     
    225234        JPanel radio_pane = new JPanel();
    226235        radio_pane.setLayout(new GridLayout(4,1));
    227         radio_pane.add(solr_button);
     236        if (Gatherer.GS3) {
     237        radio_pane.add(solr_button);
     238        }
    228239        radio_pane.add(lucene_button);
    229240        radio_pane.add(mgpp_button);
Note: See TracChangeset for help on using the changeset viewer.