Changeset 6540 for trunk/gli/src/org
- Timestamp:
- 2004-01-19T11:17:01+13:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Configuration.java
r6530 r6540 443 443 /** Retrieve the value of the named property as an integer. */ 444 444 public int getInt(String property, boolean general) { 445 int result = -1;445 int result = 0; 446 446 try { 447 447 String raw = getString(property, general); -
trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java
r6539 r6540 76 76 private JLabel proxy_host_label; 77 77 private JLabel proxy_port_label; 78 private JLabel recursion_depth_label;78 //private JLabel recursion_depth_label; 79 79 private JLabel title_label; 80 80 private JRadioButton assistant_mode_radio_button; … … 83 83 private JRadioButton systems_mode_radio_button; 84 84 private JSpinner proxy_port_field; 85 private JSpinner recursion_depth_spinner;85 //private JSpinner recursion_depth_spinner; 86 86 private JTabbedPane tab_pane; 87 87 private JTextArea mode_description_textarea; … … 349 349 350 350 // Recursion 351 /* 351 352 JPanel recursion_depth_pane = new JPanel(); 352 353 recursion_depth_label = new JLabel(); … … 355 356 recursion_depth_spinner = new JSpinner(new SpinnerNumberModel(Gatherer.config.getInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC), 0, Integer.MAX_VALUE, 1)); 356 357 Dictionary.registerTooltip(recursion_depth_spinner, "Preferences.General.Recursion_Depth_Tooltip"); 358 */ 357 359 358 360 // Connect … … 368 370 language_pane.add(language_combobox, BorderLayout.CENTER); 369 371 370 recursion_depth_pane.setLayout(new BorderLayout());371 recursion_depth_pane.add(recursion_depth_label, BorderLayout.WEST);372 recursion_depth_pane.add(recursion_depth_spinner, BorderLayout.CENTER);372 //recursion_depth_pane.setLayout(new BorderLayout()); 373 //recursion_depth_pane.add(recursion_depth_label, BorderLayout.WEST); 374 //recursion_depth_pane.add(recursion_depth_spinner, BorderLayout.CENTER); 373 375 374 376 general_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); … … 599 601 Dictionary.unregister(language_label); 600 602 Dictionary.unregister(language_combobox); 601 Dictionary.unregister(recursion_depth_label);602 Dictionary.unregister(recursion_depth_spinner);603 //Dictionary.unregister(recursion_depth_label); 604 //Dictionary.unregister(recursion_depth_spinner); 603 605 Dictionary.unregister(title_label); 604 606 Dictionary.unregister(workflow_browse); … … 656 658 Gatherer.config.setLocale("general.locale", Configuration.GENERAL_SETTING, ((DictionaryEntry)language_combobox.getSelectedItem()).getLocale()); 657 659 658 Gatherer.config.setInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC, ((Integer)recursion_depth_spinner.getValue()).intValue());660 //Gatherer.config.setInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC, ((Integer)recursion_depth_spinner.getValue()).intValue()); 659 661 660 662 // Mode preferences
Note:
See TracChangeset
for help on using the changeset viewer.