Changeset 6540


Ignore:
Timestamp:
2004-01-19T11:17:01+13:00 (20 years ago)
Author:
jmt12
Message:

Things fixed for Michael

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Configuration.java

    r6530 r6540  
    443443    /** Retrieve the value of the named property as an integer. */
    444444    public int getInt(String property, boolean general) {
    445     int result = -1;
     445    int result = 0;
    446446    try {
    447447        String raw = getString(property, general);
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r6539 r6540  
    7676    private JLabel proxy_host_label;
    7777    private JLabel proxy_port_label;
    78     private JLabel recursion_depth_label;
     78    //private JLabel recursion_depth_label;
    7979    private JLabel title_label;
    8080    private JRadioButton assistant_mode_radio_button;
     
    8383    private JRadioButton systems_mode_radio_button;
    8484    private JSpinner proxy_port_field;
    85     private JSpinner recursion_depth_spinner;
     85    //private JSpinner recursion_depth_spinner;
    8686    private JTabbedPane tab_pane;
    8787    private JTextArea mode_description_textarea;
     
    349349
    350350    // Recursion
     351    /*
    351352    JPanel recursion_depth_pane = new JPanel();
    352353    recursion_depth_label = new JLabel();
     
    355356    recursion_depth_spinner = new JSpinner(new SpinnerNumberModel(Gatherer.config.getInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC), 0, Integer.MAX_VALUE, 1));
    356357    Dictionary.registerTooltip(recursion_depth_spinner, "Preferences.General.Recursion_Depth_Tooltip");
     358    */
    357359
    358360    // Connect
     
    368370    language_pane.add(language_combobox, BorderLayout.CENTER);
    369371
    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);
    373375
    374376    general_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
     
    599601    Dictionary.unregister(language_label);
    600602    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);
    603605    Dictionary.unregister(title_label);
    604606    Dictionary.unregister(workflow_browse);
     
    656658        Gatherer.config.setLocale("general.locale", Configuration.GENERAL_SETTING, ((DictionaryEntry)language_combobox.getSelectedItem()).getLocale());
    657659
    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());
    659661
    660662        // Mode preferences
Note: See TracChangeset for help on using the changeset viewer.