Changeset 36243
- Timestamp:
- 2022-06-07T10:26:14+12:00 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/cdm/BuildTypeManager.java
r36175 r36243 185 185 setTitle(Dictionary.get("CDM.BuildTypeManager.Title")); 186 186 this.setComponentOrientation(Dictionary.getOrientation()); 187 188 BuildTypeButtonListener btbl = new BuildTypeButtonListener(); 189 187 190 mg_button = new JRadioButton(BUILD_TYPE_MG_STR); 188 191 mg_button.setComponentOrientation(Dictionary.getOrientation()); 189 192 mg_button.setActionCommand(BUILD_TYPE_MG); 193 mg_button.addActionListener(btbl); 194 190 195 mgpp_button = new JRadioButton(BUILD_TYPE_MGPP_STR); 191 196 mgpp_button.setComponentOrientation(Dictionary.getOrientation()); 192 197 mgpp_button.setActionCommand(BUILD_TYPE_MGPP); 198 mgpp_button.addActionListener(btbl); 199 193 200 lucene_button = new JRadioButton(BUILD_TYPE_LUCENE_STR); 194 201 lucene_button.setComponentOrientation(Dictionary.getOrientation()); 195 202 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);203 203 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 205 212 206 213 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 } 208 217 build_type_group.add(lucene_button); 209 218 build_type_group.add(mgpp_button); … … 225 234 JPanel radio_pane = new JPanel(); 226 235 radio_pane.setLayout(new GridLayout(4,1)); 227 radio_pane.add(solr_button); 236 if (Gatherer.GS3) { 237 radio_pane.add(solr_button); 238 } 228 239 radio_pane.add(lucene_button); 229 240 radio_pane.add(mgpp_button);
Note:
See TracChangeset
for help on using the changeset viewer.