Changeset 36140
- Timestamp:
- 2022-04-12T12:15:46+12:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/cdm/IndexOptionManager.java
r28216 r36140 144 144 setLayout(new BorderLayout()); 145 145 //if (!build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE)) { 146 add(stem_control, BorderLayout. NORTH);146 add(stem_control, BorderLayout.EAST); 147 147 //} 148 148 if (!build_type.equals(BuildTypeManager.BUILD_TYPE_MG)) { 149 add(level_control, BorderLayout. CENTER);149 add(level_control, BorderLayout.WEST); 150 150 } 151 151 } … … 176 176 if (build_type.equals(BuildTypeManager.BUILD_TYPE_MG)) { 177 177 // changing from MG 178 add(level_control, BorderLayout. CENTER);178 add(level_control, BorderLayout.WEST); 179 179 } 180 180 else if (new_build_type.equals(BuildTypeManager.BUILD_TYPE_MG)) { … … 225 225 226 226 JPanel checkbox_panel = new JPanel(); 227 checkbox_panel.setLayout(new GridLayout( 2, 1));227 checkbox_panel.setLayout(new GridLayout(1, 1)); 228 228 checkbox_panel.setComponentOrientation(Dictionary.getOrientation()); 229 229 // todo, remove one of these panels 230 230 JPanel stem_panel = new JPanel(); 231 stem_panel.setLayout(new GridLayout( 1,3));231 stem_panel.setLayout(new GridLayout(4,1)); 232 232 stem_panel.add(stem_checkbox); 233 233 stem_panel.add(casefold_checkbox); 234 234 stem_panel.add(accentfold_checkbox); 235 stem_panel.add(separate_cjk_checkbox); 235 236 stem_panel.setComponentOrientation(Dictionary.getOrientation()); 236 237 237 JPanel other_panel = new JPanel(); 238 other_panel.setLayout(new GridLayout(1,1)); 239 other_panel.add(separate_cjk_checkbox); 240 other_panel.setComponentOrientation(Dictionary.getOrientation()); 238 // JPanel other_panel = new JPanel(); 239 // other_panel.setLayout(new GridLayout(1,1)); 240 // other_panel.add(separate_cjk_checkbox); 241 // other_panel.setComponentOrientation(Dictionary.getOrientation()); 242 241 243 242 244 checkbox_panel.add(stem_panel); 243 checkbox_panel.add(other_panel);245 //checkbox_panel.add(other_panel); 244 246 245 247 JLabel tmp = new JLabel(Dictionary.get("CDM.IndexingManager.Options")); 246 248 tmp.setComponentOrientation(Dictionary.getOrientation()); 247 add(tmp, BorderLayout. LINE_START);249 add(tmp, BorderLayout.NORTH); 248 250 add(checkbox_panel, BorderLayout.CENTER); 249 251 250 252 // set the defaults 251 if (build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE) ) {253 if (build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE)|| build_type.equals(BuildTypeManager.BUILD_TYPE_SOLR)) { 252 254 stem_checkbox.setSelected(false); 253 255 stem_checkbox.setEnabled(false); … … 304 306 accentfold_checkbox.setSelected(true); 305 307 options_model.addOption(StaticStrings.ACCENTFOLD_OPTION_STR); 306 if (build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE) ) {307 // was lucene 308 if (build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE) || build_type.equals(BuildTypeManager.BUILD_TYPE_SOLR)) { 309 // was lucene/solr 308 310 stem_checkbox.setEnabled(true); 309 311 stem_checkbox.setSelected(true); … … 320 322 options_model.removeOption(StaticStrings.ACCENTFOLD_OPTION_STR); 321 323 322 if (build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE) ) {324 if (build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE) || build_type.equals(BuildTypeManager.BUILD_TYPE_SOLR)) { 323 325 // was lucene 324 326 stem_checkbox.setEnabled(true); … … 331 333 332 334 } 333 if (new_build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE) ) {335 if (new_build_type.equals(BuildTypeManager.BUILD_TYPE_LUCENE) || new_build_type.equals(BuildTypeManager.BUILD_TYPE_SOLR)) { 334 336 accentfold_checkbox.setSelected(true); 335 337 accentfold_checkbox.setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.