Changeset 8605


Ignore:
Timestamp:
2004-11-19T15:12:39+13:00 (19 years ago)
Author:
mdewsnip
Message:

Removed some dead code.

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

Legend:

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

    r8597 r8605  
    9898    static public ServletConfiguration servlet_config;
    9999    /** A public reference to the Dictionary. */
    100     static public Dictionary dictionary;
     100    // static public Dictionary dictionary;
    101101    /** A public reference to the FileManager. */
    102102    static public FileManager f_man;
     
    198198       
    199199        // Read Dictionary
    200         dictionary = new Dictionary(Configuration.getLocale("general.locale", true), Configuration.getFont("general.font", true));
    201 
     200        new Dictionary(Configuration.getLocale("general.locale", true), Configuration.getFont("general.font", true));
    202201
    203202        if (gsdl_path == null) {
     
    431430    g_man.destroy();
    432431    g_man_built = false;
    433 
    434 
    435     // Flush dictionary
    436     // dictionary.destroy();
    437432
    438433    // Flush debug
  • trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java

    r8243 r8605  
    3535import org.greenstone.gatherer.util.Utility;
    3636
    37 /** Warn a user that they are about to add folder level metadata. */
     37
     38/** A dialog that warns about something, and allows the user to turn off the warning in the future. */
    3839public class WarningDialog
    3940    extends ModalDialog
     
    4344    static final private Dimension SETTING_SIZE = new Dimension(450, 200);
    4445
    45     private Dictionary dictionary;
    4646    private int result = JOptionPane.CANCEL_OPTION;
    4747    private JButton cancel_button;
     
    5454    private String warning_name;
    5555
    56     public WarningDialog(String full_property) {
    57     this(full_property, false, null, Gatherer.dictionary);
    58     }
    5956
    6057    public WarningDialog(String full_property, boolean can_cancel) {
    61     this(full_property, can_cancel, null, Gatherer.dictionary);
     58    this(full_property, can_cancel, null);
    6259    }
    6360
    6461    public WarningDialog(String full_property, String affected_property) {
    65     this(full_property, false, affected_property, Gatherer.dictionary);
    66     }
    67 
    68     public WarningDialog(String full_property, boolean can_cancel, Dictionary dictionary) {
    69     this(full_property, can_cancel, null, dictionary);
    70     }
    71 
    72     public WarningDialog(String full_property, String affected_feature, Dictionary dictionary) {
    73     this(full_property, false, affected_feature, dictionary);
    74     }
    75 
    76     public WarningDialog(String full_property, boolean can_cancel, String affected_property) {
    77     this(full_property, can_cancel, affected_property, Gatherer.dictionary);
    78     }
    79    
    80     public WarningDialog(String full_property, boolean can_cancel, String affected_property, Dictionary dictionary) {
     62    this(full_property, false, affected_property);
     63    }
     64
     65
     66    private WarningDialog(String full_property, boolean can_cancel, String affected_property) {
    8167    super(Gatherer.g_man, "Warning", true);
    8268
    8369    // Determine the name of this prompt.
    8470    this.affected_property = affected_property;
    85     this.dictionary = dictionary;
    8671    this.full_property = full_property;
    8772    warning_name = full_property.substring(full_property.indexOf(".") + 1);
Note: See TracChangeset for help on using the changeset viewer.