Changeset 5593


Ignore:
Timestamp:
2003-10-07T15:35:23+13:00 (21 years ago)
Author:
mdewsnip
Message:

Changed calls to the Dictionary.

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

Legend:

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

    r5571 r5593  
    229229
    230230
    231     static public String newget(String key)
    232     {
    233     return self.get(key);
    234     }
    235 
    236 
    237     static public String newget(String key, String arg)
     231    static public String get(String key)
     232    {
     233    return self.oldget(key);
     234    }
     235
     236
     237    static public String get(String key, String arg)
    238238    {
    239239    String[] args = new String[1];
    240240    args[0] = arg;
    241     return self.get(key, args);
    242     }
    243 
    244 
    245     static public String newget(String key, String[] args)
    246     {
    247     return self.get(key, args);
     241    return self.oldget(key, args);
     242    }
     243
     244
     245    static public String get(String key, String[] args)
     246    {
     247    return self.oldget(key, args);
    248248    }
    249249
     
    255255     * @return A <strong>String</strong> which has been referenced by the key String and that either contains no argument fields, or has had the argument fields automatiically populated with formatting Strings of with argument String provided in the get call.
    256256     */
    257     public String get(String key) {
    258     return get(key, (String[])null);
    259     }
     257    public String oldget(String key) {
     258    return oldget(key, (String[])null);
     259    }
     260
    260261    /**
    261262     * @deprecated
    262263     * Convienence method with transforms the second string argument into a string array. */
    263     public String get(String key, String arg) {
     264    public String oldget(String key, String arg) {
    264265    String[] args = new String[1];
    265266    args[0] = arg;
    266     return get(key, args);
     267    return oldget(key, args);
    267268    }
    268269
     
    273274     * @return A <strong>String</strong> which has been referenced by the key String and that either contains no argument fields, or has had the argument fields automatiically populated with formatting Strings of with argument String provided in the get call.
    274275     */
    275     public String get(String key, String args[]) {
     276    public String oldget(String key, String args[]) {
    276277    if(key_list != null) {
    277278        synchronized(this) {
     
    310311            f_subargs[0] = "Arial";
    311312            }
    312             complete = complete + get("Farg" + arg_num, f_subargs);
     313            complete = complete + oldget("Farg" + arg_num, f_subargs);
    313314        }
    314315        }
     
    452453
    453454        if (details.has_text) {
    454         text = self.get(details.text_key, details.text_args);
     455        text = self.oldget(details.text_key, details.text_args);
    455456        }
    456457        if (details.has_tooltip) {
    457         tooltip = self.get(details.tooltip_key, (String[]) null);
     458        tooltip = self.oldget(details.tooltip_key, (String[]) null);
    458459        }
    459460    }
     
    496497
    497498    /**
    498      * @deprecated
    499      * Register a tab pane component. */
     499     * Register a tab pane component. This will be deprecated eventually. */
    500500    static public void register(JTabbedPane component)
    501501    {
    502     if(component != null) {
     502    if (component != null) {
    503503        String[] args = new String[component.getTabCount()];
    504504
    505505        // Iterate through the tabbed panes tabs, updating values and recording the original key of each item in args.
    506         for(int i = 0; i < args.length; i++) {
     506        for (int i = 0; i < args.length; i++) {
    507507        if (args[i] == null) {
    508508            args[i] = component.getTitleAt(i);
    509509        }
    510         String value = self.get(args[i], (String[])null);
    511         String tooltip = self.get(args[i] + "_Tooltip", (String[])null);
    512         JTabbedPaneChangeTask task = new JTabbedPaneChangeTask(component, args[i], i, value, tooltip);
     510        String value = self.oldget(args[i], (String[]) null);
     511        String tooltip = self.oldget(args[i] + "_Tooltip", (String[]) null);
     512        JTabbedPaneChangeTask task = new JTabbedPaneChangeTask(component, i, value, tooltip);
    513513        SwingUtilities.invokeLater(task);
    514514        }
     
    520520    static private class JTabbedPaneChangeTask
    521521    implements Runnable {
    522     protected String key;
    523     protected String value;
     522
     523    private JTabbedPane component;
    524524    private int index;
    525     private JTabbedPane component;
     525    private String value;
    526526    private String tooltip;
    527527
    528     public JTabbedPaneChangeTask(JTabbedPane component, String key, int index, String value, String tooltip) {
    529         this.key = key;
    530         this.value = value;
     528    public JTabbedPaneChangeTask(JTabbedPane component, int index, String value, String tooltip) {
    531529        this.component = component;
    532530        this.index = index;
     531        this.value = value;
    533532        this.tooltip = tooltip;
    534533    }
     534
    535535    public void run() {
    536536        component.setTitleAt(index, value);
    537         if(!tooltip.equals(key+"_Tooltip")) {
    538         component.setToolTipTextAt(index, tooltip);
    539         }
    540         else {
    541         component.setToolTipTextAt(index, null);
    542         }
     537        component.setToolTipTextAt(index, tooltip);
    543538    }
    544539    }
  • trunk/gli/src/org/greenstone/gatherer/GAuthenticator.java

    r5536 r5593  
    7272    protected PasswordAuthentication getPasswordAuthentication() {
    7373    // Component definition.
    74     dialog = new JDialog (Gatherer.g_man, Dictionary.newget("GAuthenticator.Title"), true);
     74    dialog = new JDialog (Gatherer.g_man, Dictionary.get("GAuthenticator.Title"), true);
    7575    dialog.setModal(true);
    7676    dialog.setSize(SIZE);
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r5581 r5593  
    366366    }
    367367    else {
    368         JOptionPane.showMessageDialog(g_man, Dictionary.newget("General.Outstanding_Processes"), Dictionary.newget("General.Outstanding_Processes_Title"), JOptionPane.ERROR_MESSAGE);
     368        JOptionPane.showMessageDialog(g_man, Dictionary.get("General.Outstanding_Processes"), Dictionary.get("General.Outstanding_Processes_Title"), JOptionPane.ERROR_MESSAGE);
    369369        g_man.hide();
    370370    }
     
    586586    dialog.dispose();
    587587    dialog = null;
    588     ///ystem.out.println(Dictionary.newget("General.Missing_EXEC"));
     588    ///ystem.out.println(Dictionary.get("General.Missing_EXEC"));
    589589    }
    590590
     
    596596    dialog.dispose();
    597597    dialog = null;
    598     ///ystem.out.println(Dictionary.newget("General.Missing_GSDL"));
     598    ///ystem.out.println(Dictionary.get("General.Missing_GSDL"));
    599599    }
    600600
     
    605605    dialog.dispose();
    606606    dialog = null;
    607     ///ystem.out.println(Dictionary.newget("General.Missing_PERL"));
     607    ///ystem.out.println(Dictionary.get("General.Missing_PERL"));
    608608    }
    609609
     
    626626     */
    627627    static public void printUsage(Dictionary dictionary) {
    628     System.out.println(Dictionary.newget("General.Usage"));
     628    System.out.println(Dictionary.get("General.Usage"));
    629629    }
    630630
     
    735735            ///ystem.err.print(".");
    736736            if(attempt_count == 60) {
    737                 try_again = JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.newget("Server.QuitTimeOut"), Dictionary.newget("General.Warning"), JOptionPane.YES_NO_OPTION);
     737                try_again = JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("Server.QuitTimeOut"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION);
    738738            }
    739739            else {
     
    798798            while(gsdlsite_cfg.getURL() != null && try_again == JOptionPane.YES_OPTION) {
    799799            if(attempt_count == 60) {
    800                 try_again = JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.newget("Server.QuitTimeOut"), Dictionary.newget("General.Warning"), JOptionPane.YES_NO_OPTION);
     800                try_again = JOptionPane.showConfirmDialog(Gatherer.g_man, Dictionary.get("Server.QuitTimeOut"), Dictionary.get("General.Warning"), JOptionPane.YES_NO_OPTION);
    801801            }
    802802            else {
     
    809809            }
    810810            //if(gsdlsite_cfg.getURL() != null) {
    811             //JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("Server.QuitManual"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     811            //JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("Server.QuitManual"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    812812            //}
    813813        }
     
    822822        // If the local server is still running then our changed values will get overwritten.
    823823        if(gsdlsite_cfg.getURL() != null) {
    824         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("Server.QuitFailed"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     824        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("Server.QuitFailed"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    825825        }
    826826        gsdlsite_cfg = null;
  • trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java

    r5590 r5593  
    540540                String args[] = new String[1];
    541541                args[0] = argument.getName();
    542                 JOptionPane.showMessageDialog(self, Dictionary.newget("CDM.ArgumentConfiguration.Required_Argument", args), Dictionary.newget("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
     542                JOptionPane.showMessageDialog(self, Dictionary.get("CDM.ArgumentConfiguration.Required_Argument", args), Dictionary.get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
    543543                args = null;
    544544                return false;
     
    563563                args[0] = argument.getName();
    564564                args[1] = result;
    565                 JOptionPane.showMessageDialog(self, Dictionary.newget("CDM.ArgumentConfiguration.Bad_Integer", args), Dictionary.newget("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
     565                JOptionPane.showMessageDialog(self, Dictionary.get("CDM.ArgumentConfiguration.Bad_Integer", args), Dictionary.get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
    566566                args = null;
    567567                return false;
     
    573573                String args[] = new String[1];
    574574                args[0] = argument.getName();
    575                 JOptionPane.showMessageDialog(self, Dictionary.newget("CDM.ArgumentConfiguration.Required_Argument", args), Dictionary.newget("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
     575                JOptionPane.showMessageDialog(self, Dictionary.get("CDM.ArgumentConfiguration.Required_Argument", args), Dictionary.get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
    576576                args = null;
    577577                return false;
     
    612612                String args[] = new String[1];
    613613                args[0] = argument.getName();
    614                 JOptionPane.showMessageDialog(self, Dictionary.newget("CDM.ArgumentConfiguration.Required_Argument", args), Dictionary.newget("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
     614                JOptionPane.showMessageDialog(self, Dictionary.get("CDM.ArgumentConfiguration.Required_Argument", args), Dictionary.get("CDM.ArgumentConfiguration.Error_Title"), JOptionPane.ERROR_MESSAGE);
    615615                return false;
    616616            }
  • trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r5590 r5593  
    200200        if(index < 0) {
    201201            String args[] = new String[2];
    202             args[0] = Dictionary.newget("CDM.ClassifierManager.Classifier");
     202            args[0] = Dictionary.get("CDM.ClassifierManager.Classifier");
    203203            args[1] = classifier.getName();
    204             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.Move.At_Top", args), Dictionary.newget("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
     204            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.Move.At_Top", args), Dictionary.get("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
    205205            return;
    206206        }
     
    213213        if(index >= getSize()) {
    214214            String args[] = new String[2];
    215             args[0] = Dictionary.newget("CDM.ClassifierManager.Classifier_Str");
     215            args[0] = Dictionary.get("CDM.ClassifierManager.Classifier_Str");
    216216            args[1] = classifier.getName();
    217             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.Move.At_Bottom", args), Dictionary.newget("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
     217            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.Move.At_Bottom", args), Dictionary.get("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
    218218            return;
    219219        }
     
    337337        String classifier_name = getClassifierName(classifier);
    338338        Gatherer.println("Zero length argument xml detected for: " + classifier_name);
    339         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.ClassifierManager.Classifier_XML_Parse_Failed", classifier_name), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     339        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.ClassifierManager.Classifier_XML_Parse_Failed", classifier_name), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    340340        classifier_name = null;
    341341        }
     
    370370        if(files != null) {
    371371        // Create a progress indicator.
    372         ParsingProgress progress = new ParsingProgress(Dictionary.newget("CDM.ClassifierManager.Parsing.Title"), Dictionary.newget("CDM.ClassifierManager.Parsing.Message"), files.length);
     372        ParsingProgress progress = new ParsingProgress(Dictionary.get("CDM.ClassifierManager.Parsing.Title"), Dictionary.get("CDM.ClassifierManager.Parsing.Message"), files.length);
    373373        for(int i = 0; i < files.length; i++) {
    374374            // We only want to check Perl Modules.
     
    516516        // Create
    517517        add = new JButton();
    518         Dictionary.setBoth(add, "CDM.ClassifierManager.Add", "CDM.ClassifierManager.Add_Tooltip");
     518        Dictionary.registerBoth(add, "CDM.ClassifierManager.Add", "CDM.ClassifierManager.Add_Tooltip");
    519519        JPanel button_pane = new JPanel();
    520520        JPanel central_pane = new JPanel();
    521521        configure = new JButton();
    522522        configure.setEnabled(false);
    523         Dictionary.setBoth(configure, "CDM.ClassifierManager.Configure", "CDM.ClassifierManager.Configure_Tooltip");
     523        Dictionary.registerBoth(configure, "CDM.ClassifierManager.Configure", "CDM.ClassifierManager.Configure_Tooltip");
    524524        JPanel header_pane = new JPanel();
    525525        instructions = new JTextArea();
     
    528528        instructions.setRows(6);
    529529        instructions.setWrapStyleWord(true);
    530         Dictionary.setText(instructions, "CDM.ClassifierManager.Instructions");
     530        Dictionary.registerText(instructions, "CDM.ClassifierManager.Instructions");
    531531
    532532        classifier = new GComboBox(getAvailable());
     
    537537        classifier.setTextNonSelectionColor(Gatherer.config.getColor("coloring.workspace_tree_foreground", false));
    538538        classifier.setTextSelectionColor(Gatherer.config.getColor("coloring.collection_selection_foreground", false));
    539         Dictionary.setTooltip(classifier, "CDM.ClassifierManager.Classifier_Tooltip");
     539        Dictionary.registerTooltip(classifier, "CDM.ClassifierManager.Classifier_Tooltip");
    540540
    541541        JLabel classifier_label = new JLabel();
    542         Dictionary.setText(classifier_label, "CDM.ClassifierManager.Classifier");
     542        Dictionary.registerText(classifier_label, "CDM.ClassifierManager.Classifier");
    543543        classifier_list = new JList(model);
    544544        classifier_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
     
    546546        classifier_list_label.setHorizontalAlignment(JLabel.CENTER);
    547547        classifier_list_label.setOpaque(true);
    548         Dictionary.setText(classifier_list_label, "CDM.ClassifierManager.Assigned");
     548        Dictionary.registerText(classifier_list_label, "CDM.ClassifierManager.Assigned");
    549549        JPanel classifier_list_pane = new JPanel();
    550550        JPanel classifier_pane = new JPanel();
    551551        remove = new JButton();
    552552        remove.setEnabled(false);
    553         Dictionary.setBoth(remove, "CDM.ClassifierManager.Remove", "CDM.ClassifierManager.Remove_Tooltip");
     553        Dictionary.registerBoth(remove, "CDM.ClassifierManager.Remove", "CDM.ClassifierManager.Remove_Tooltip");
    554554
    555555        JLabel title = new JLabel();
    556556        title.setHorizontalAlignment(JLabel.CENTER);
    557557        title.setOpaque(true);
    558         Dictionary.setText(title, "CDM.ClassifierManager.Title");
     558        Dictionary.registerText(title, "CDM.ClassifierManager.Title");
    559559
    560560        JPanel temp = new JPanel(new BorderLayout());
     
    635635
    636636        // Scope these mad bordering skillz.
    637         temp.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,0,5,0), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("CDM.ClassifierManager.Controls")), BorderFactory.createEmptyBorder(2,2,2,2))));
     637        temp.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,0,5,0), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("CDM.ClassifierManager.Controls")), BorderFactory.createEmptyBorder(2,2,2,2))));
    638638        temp.add(classifier_pane, BorderLayout.NORTH);
    639639        temp.add(button_pane, BorderLayout.SOUTH);
     
    712712            }
    713713            else {
    714                 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.ClassifierManager.Classifier_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     714                JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.ClassifierManager.Classifier_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    715715            }
    716716            }
  • trunk/gli/src/org/greenstone/gatherer/cdm/FormatManager.java

    r5590 r5593  
    369369        button_pane.add(remove_button);
    370370
    371         center_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("CDM.FormatManager.Editing_Controls")), BorderFactory.createEmptyBorder(2,2,2,2)));
     371        center_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("CDM.FormatManager.Editing_Controls")), BorderFactory.createEmptyBorder(2,2,2,2)));
    372372        center_pane.setLayout(new BorderLayout());
    373373        center_pane.add(selection_pane, BorderLayout.NORTH);
  • trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r5536 r5593  
    356356     */
    357357    public void setSelectedView(String type) {
    358         type = Dictionary.newget(type);
     358        type = Dictionary.get(type);
    359359        for(int i = 0; i < root.getChildCount(); i++) {
    360360        DesignNode child = (DesignNode) root.getChildAt(i);
     
    379379     */
    380380    public String toString() {
    381         return Dictionary.newget("CDM.GUI." + (String)getUserObject());
     381        return Dictionary.get("CDM.GUI." + (String)getUserObject());
    382382    }
    383383    }
  • trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java

    r5590 r5593  
    107107    }
    108108    else {
    109         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.IndexManager.Index_Exists"), Dictionary.newget("General.Warning"), JOptionPane.WARNING_MESSAGE);
     109        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.IndexManager.Index_Exists"), Dictionary.get("General.Warning"), JOptionPane.WARNING_MESSAGE);
    110110    }
    111111    }
     
    125125    }
    126126    else {
    127         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.IndexManager.Level_Exists"), Dictionary.newget("General.Warning"), JOptionPane.WARNING_MESSAGE);
     127        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.IndexManager.Level_Exists"), Dictionary.get("General.Warning"), JOptionPane.WARNING_MESSAGE);
    128128    }
    129129    }
     
    587587        Dictionary.registerText(level_label, "CDM.IndexManager.Level");
    588588        level_combobox = new JComboBox();
    589         level_combobox.addItem(Dictionary.newget("CDM.IndexManager.Document"));
    590         level_combobox.addItem(Dictionary.newget("CDM.IndexManager.Paragraph"));
    591         level_combobox.addItem(Dictionary.newget("CDM.IndexManager.Section"));
     589        level_combobox.addItem(Dictionary.get("CDM.IndexManager.Document"));
     590        level_combobox.addItem(Dictionary.get("CDM.IndexManager.Paragraph"));
     591        level_combobox.addItem(Dictionary.get("CDM.IndexManager.Section"));
    592592        level_combobox.setEditable(false);
    593593        Dictionary.registerTooltip(level_combobox, "CDM.IndexManager.Level_Tooltip");
     
    800800        JLabel component = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
    801801        if(default_index != null && default_index.equals(value)) {
    802             component.setText(component.getText() + " " + Dictionary.newget("CDM.IndexManager.Default_Index_Indicator"));
     802            component.setText(component.getText() + " " + Dictionary.get("CDM.IndexManager.Default_Index_Indicator"));
    803803        }
    804804        return component;
     
    11991199        header_panel.add(new JScrollPane(instructions_textarea), BorderLayout.CENTER);
    12001200
    1201         tabbed_pane.add(Dictionary.newget("CDM.IndexManager.MGPP.Indexes"), indexes_panel);
    1202         tabbed_pane.add(Dictionary.newget("CDM.IndexManager.MGPP.Levels"), levels_panel);
     1201        tabbed_pane.add(Dictionary.get("CDM.IndexManager.MGPP.Indexes"), indexes_panel);
     1202        tabbed_pane.add(Dictionary.get("CDM.IndexManager.MGPP.Levels"), levels_panel);
    12031203
    12041204        setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
  • trunk/gli/src/org/greenstone/gatherer/cdm/MetadataSetView.java

    r5590 r5593  
    195195        element_label.setHorizontalAlignment(JLabel.CENTER);
    196196        element_label.setOpaque(true);
    197         Dictionary.setText(element_label, "CDM.MetadataSetManager.Elements");
     197        Dictionary.registerText(element_label, "CDM.MetadataSetManager.Elements");
    198198        element_list = new JList();
    199199        element_list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
  • trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java

    r5590 r5593  
    146146    }
    147147    if(plugin.getName().equals(StaticStrings.ARCPLUG_STR) || plugin.getName().equals(StaticStrings.RECPLUG_STR)) {
    148         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.Move.Fixed"), Dictionary.newget("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
     148        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.Move.Fixed"), Dictionary.get("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
    149149        return;
    150150    }
     
    183183        if(index < 0) {
    184184            String args[] = new String[2];
    185             args[0] = Dictionary.newget("CDM.PlugInManager.PlugIn_Str");
     185            args[0] = Dictionary.get("CDM.PlugInManager.PlugIn_Str");
    186186            args[1] = plugin.getName();
    187             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.Move.At_Top", args), Dictionary.newget("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
     187            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.Move.At_Top", args), Dictionary.get("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
    188188            return;
    189189        }
     
    198198            String args[] = new String[1];
    199199            args[0] = plugin.getName();
    200             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.Move.Cannot", args), Dictionary.newget("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
     200            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.Move.Cannot", args), Dictionary.get("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
    201201            // Still not going to move RecPlug or ArcPlug.
    202202            return;
     
    376376        String[] margs = new String[1];
    377377        margs[0] = plugin_name;
    378         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.PlugInManager.PlugIn_XML_Parse_Failed", margs), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     378        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.PlugInManager.PlugIn_XML_Parse_Failed", margs), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    379379        }
    380380    }
     
    413413    if(files != null) {
    414414        // Create a progress indicator.
    415         ParsingProgress progress = new ParsingProgress(Dictionary.newget("CDM.PlugInManager.Parsing.Title"), Dictionary.newget("CDM.PlugInManager.Parsing.Message"), files.length);
     415        ParsingProgress progress = new ParsingProgress(Dictionary.get("CDM.PlugInManager.Parsing.Title"), Dictionary.get("CDM.PlugInManager.Parsing.Message"), files.length);
    416416        for(int i = 0; i < files.length; i++) {
    417417        // We only want to check Perl Modules.
     
    696696         (BorderFactory.createEmptyBorder(5,0,5,0),
    697697          BorderFactory.createCompoundBorder
    698           (BorderFactory.createTitledBorder(Dictionary.newget("CDM.PlugInManager.Controls")),
     698          (BorderFactory.createTitledBorder(Dictionary.get("CDM.PlugInManager.Controls")),
    699699           BorderFactory.createEmptyBorder(2,2,2,2))));
    700700
     
    771771            }
    772772            else {
    773             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CDM.PlugInManager.PlugIn_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     773            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CDM.PlugInManager.PlugIn_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    774774            }
    775775            base_plugin = null;
  • trunk/gli/src/org/greenstone/gatherer/cdm/SearchTypeManager.java

    r5590 r5593  
    102102    if((direction && index < 0) || (!direction && index >= getSize())) {
    103103        String args[] = new String[2];
    104         args[0] = Dictionary.newget("CDM.SearchTypeManager.SearchType");
     104        args[0] = Dictionary.get("CDM.SearchTypeManager.SearchType");
    105105        args[1] = search_type.toString();
    106106        String message = null;
    107107        if (direction) {
    108         message = Dictionary.newget("CDM.Move.At_Top", args);
     108        message = Dictionary.get("CDM.Move.At_Top", args);
    109109        }
    110110        else {
    111         message = Dictionary.newget("CDM.Move.At_Bottom", args);
    112         }
    113         JOptionPane.showMessageDialog(Gatherer.g_man, message, Dictionary.newget("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
     111        message = Dictionary.get("CDM.Move.At_Bottom", args);
     112        }
     113        JOptionPane.showMessageDialog(Gatherer.g_man, message, Dictionary.get("CDM.Move.Title"), JOptionPane.ERROR_MESSAGE);
    114114        return;
    115115    }
  • trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionManager.java

    r5590 r5593  
    311311        subcollection_pane.add(button_pane, BorderLayout.SOUTH);
    312312
    313         tabbed_pane.addTab(Dictionary.newget("CDM.SubcollectionManager.Subcollection_Controls"), subcollection_pane);
    314         tabbed_pane.addTab(Dictionary.newget("CDM.SubcollectionManager.Subindex_Controls"), (JPanel) CollectionDesignManager.subcollectionindex_manager.getControls());
    315         tabbed_pane.addTab(Dictionary.newget("CDM.SubcollectionManager.Language_Controls"), (JPanel) CollectionDesignManager.language_manager.getControls());
     313        tabbed_pane.addTab(Dictionary.get("CDM.SubcollectionManager.Subcollection_Controls"), subcollection_pane);
     314        tabbed_pane.addTab(Dictionary.get("CDM.SubcollectionManager.Subindex_Controls"), (JPanel) CollectionDesignManager.subcollectionindex_manager.getControls());
     315        tabbed_pane.addTab(Dictionary.get("CDM.SubcollectionManager.Language_Controls"), (JPanel) CollectionDesignManager.language_manager.getControls());
    316316
    317317        border_pane.setBorder(BorderFactory.createEmptyBorder(0,5,5,5));
  • trunk/gli/src/org/greenstone/gatherer/cdm/TranslationView.java

    r5590 r5593  
    520520        }
    521521        public String getColumnName(int column) {
    522         return Dictionary.newget("CDM.TranslationManager.Column_Name_" + column);
     522        return Dictionary.get("CDM.TranslationManager.Column_Name_" + column);
    523523        }
    524524
  • trunk/gli/src/org/greenstone/gatherer/checklist/Entry.java

    r5564 r5593  
    2828        MetadataSet set = (MetadataSet) object;
    2929        // Build tooltip
    30         StringBuffer tip = new StringBuffer(Dictionary.newget("NewCollectionPrompt.Set_Contains"));
     30        StringBuffer tip = new StringBuffer(Dictionary.get("NewCollectionPrompt.Set_Contains"));
    3131        tip.append(":\n");
    3232        for(int i = 0; i < set.size(); i++) {
  • trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java

    r5590 r5593  
    229229    try {
    230230        // Create a progress monitor.
    231         ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, Dictionary.newget("CollectionManager.Creating_New"), "mkcol.pl", 0, 7);
     231        ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, Dictionary.get("CollectionManager.Creating_New"), "mkcol.pl", 0, 7);
    232232        // Create the new collection.
    233233        makeCollection(description, email, name, title);
     
    241241        gcache_dir.mkdirs();
    242242        if(progress != null) {
    243         progress.setNote(Dictionary.newget("CollectionManager.Gcache_Created"));
     243        progress.setNote(Dictionary.get("CollectionManager.Gcache_Created"));
    244244        }
    245245
     
    249249        log_dir.mkdirs();
    250250        if(progress != null) {
    251         progress.setNote(Dictionary.newget("CollectionManager.Log_Created"));
     251        progress.setNote(Dictionary.get("CollectionManager.Log_Created"));
    252252        }
    253253
     
    401401        String args[] = new String[1];
    402402        args[0] = name;
    403         progress.setNote(Dictionary.newget("CollectionManager.Session_Ready", args));
     403        progress.setNote(Dictionary.get("CollectionManager.Session_Ready", args));
    404404        progress.close();
    405405    }
     
    584584        return collection.getTitle();
    585585    }
    586     return Dictionary.newget("Collection.No_Collection");
     586    return Dictionary.get("Collection.No_Collection");
    587587    }
    588588
     
    616616    // Create and add Greenstone collections node.
    617617    // Starting at the collection directory of gsdl...
    618     FileNode world_root = new FileNode(Dictionary.newget("Tree.World"));
     618    FileNode world_root = new FileNode(Dictionary.get("Tree.World"));
    619619    world_root.unmap();
    620620    workspace_root.insert(world_root);
     
    625625    if(roots != null) {
    626626        FileNode file_root;
    627         String name = Dictionary.newget("Tree.Root");
     627        String name = Dictionary.get("Tree.Root");
    628628        if(roots.length == 1) {
    629629        file_root = new FileNode(roots[0], name);
     
    652652        String[] args = new String[1];
    653653        args[0] = home_folder.getName();
    654         FileNode home_folder_node = new FileNode(home_folder, Dictionary.newget("Tree.Home", args));
     654        FileNode home_folder_node = new FileNode(home_folder, Dictionary.get("Tree.Home", args));
    655655        workspace_root.insert(home_folder_node);
    656656    }
     
    659659    if(Gatherer.config.get("workflow.mirror", false)) {
    660660        // Add Public workspace
    661         FileNode public_root = new FileNode(new File(Utility.CACHE_DIR), Dictionary.newget("Tree.Public"));
     661        FileNode public_root = new FileNode(new File(Utility.CACHE_DIR), Dictionary.get("Tree.Public"));
    662662        workspace_root.insert(public_root);
    663663        // Add Private workspace if a collection has been loaded.
    664664        if(ready()) {
    665         FileNode private_root = new FileNode(new File(getCollectionCache()), Dictionary.newget("Tree.Private"));
     665        FileNode private_root = new FileNode(new File(getCollectionCache()), Dictionary.get("Tree.Private"));
    666666        workspace_root.insert(private_root);
    667667        }
     
    761761        File metadata_directory = new File(collection_directory, Utility.META_DIR);
    762762        if(!metadata_directory.exists()) {
    763             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CollectionManager.Old_Collection", args2), Dictionary.newget("General.Warning"), JOptionPane.INFORMATION_MESSAGE);
     763            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Old_Collection", args2), Dictionary.get("General.Warning"), JOptionPane.INFORMATION_MESSAGE);
    764764        }
    765765        // Normal GLI collection
     
    793793                String[] args = new String[1];
    794794                args[0] = name;
    795                 Gatherer.println(Dictionary.newget("CollectionManager.Loading_Successful", args));
     795                Gatherer.println(Dictionary.get("CollectionManager.Loading_Successful", args));
    796796                // Now we need to hook up classes that depend on messages from the metadata set manager to keep their content fresh.
    797797                collection.msm.addMSMListener(this);
     
    806806                // There is obviously no existing collection present.
    807807                Gatherer.printStackTrace(error);
    808                 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CollectionManager.Cannot_Open", args2), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     808                JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Cannot_Open", args2), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    809809            }
    810810            }
     
    813813        }
    814814        else {
    815         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CollectionManager.File_Not_Found", args2), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     815        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.File_Not_Found", args2), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    816816        }
    817817        collection_directory = null;
    818818    }
    819819    else {
    820         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CollectionManager.Not_Col_File", args2), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     820        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Not_Col_File", args2), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    821821        Gatherer.println("Not a Gatherer Collection.");
    822822    }
     
    939939        workspace_model = null;
    940940        Gatherer.g_man.collectionChanged(ready());
    941         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CollectionManager.Preview_Ready"), Dictionary.newget("CollectionManager.Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE);
     941        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Preview_Ready"), Dictionary.get("CollectionManager.Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE);
    942942    }
    943943    else if(event.getStatus() == GShell.ERROR) {
    944         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("CollectionManager.Preview_Ready_Failed"), Dictionary.newget("CollectionManager.Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE);
     944        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("CollectionManager.Preview_Ready_Failed"), Dictionary.get("CollectionManager.Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE);
    945945        Gatherer.g_man.collectionChanged(ready());
    946946    }
     
    986986    FileNode greenstone_collections_node = null;
    987987    int root_child_count = root.getChildCount();
    988     String greenstone_collections_str = Dictionary.newget("Tree.World");
     988    String greenstone_collections_str = Dictionary.get("Tree.World");
    989989    for(int i = 0; greenstone_collections_node == null && i < root_child_count; i++) {
    990990        TreeNode child = root.getChildAt(i);
     
    11061106        model.removeNodeFromParent(old);
    11071107                // Create and insert new.
    1108         FileNode private_workspace = new FileNode(new File(getCollectionCache()), Dictionary.newget("Tree.Private"));
     1108        FileNode private_workspace = new FileNode(new File(getCollectionCache()), Dictionary.get("Tree.Private"));
    11091109        model.insertNodeInto(private_workspace, root, 2);
    11101110    }
     
    11441144
    11451145        // Special case for build mode "all": replace index dir with building dir
    1146         if (build_mode == null || build_mode.equals(Dictionary.newget("CreatePane.Mode_All"))) {
     1146        if (build_mode == null || build_mode.equals(Dictionary.get("CreatePane.Mode_All"))) {
    11471147        // Remove the old index directory
    11481148        if (index_dir.exists()) {
  • trunk/gli/src/org/greenstone/gatherer/collection/DeleteCollectionPrompt.java

    r5581 r5593  
    199199    args[0] = collection.getName();
    200200    if (success) {
    201         JOptionPane.showMessageDialog(prompt,Dictionary.newget("DeleteCollectionPrompt.Successful_Delete", args),Dictionary.newget("DeleteCollectionPrompt.Successful_Title"),JOptionPane.INFORMATION_MESSAGE);
     201        JOptionPane.showMessageDialog(prompt,Dictionary.get("DeleteCollectionPrompt.Successful_Delete", args),Dictionary.get("DeleteCollectionPrompt.Successful_Title"),JOptionPane.INFORMATION_MESSAGE);
    202202    }
    203203    else {
    204         JOptionPane.showMessageDialog(prompt,Dictionary.newget("DeleteCollectionPrompt.Failed_Delete", args),Dictionary.newget("DeleteCollectionPrompt.Failed_Title"),JOptionPane.WARNING_MESSAGE);
     204        JOptionPane.showMessageDialog(prompt,Dictionary.get("DeleteCollectionPrompt.Failed_Delete", args),Dictionary.get("DeleteCollectionPrompt.Failed_Title"),JOptionPane.WARNING_MESSAGE);
    205205    }
    206206    }
  • trunk/gli/src/org/greenstone/gatherer/collection/Job.java

    r5581 r5593  
    220220        int count = 0;
    221221        while(count < 3 && (user_pass = (String) Gatherer.authentications.get(address)) == null) {
    222         Authenticator.requestPasswordAuthentication(proxy_host, null, Integer.parseInt(proxy_port), "http://", Dictionary.newget("WGet.Prompt"), "HTTP");
     222        Authenticator.requestPasswordAuthentication(proxy_host, null, Integer.parseInt(proxy_port), "http://", Dictionary.get("WGet.Prompt"), "HTTP");
    223223        count++;
    224224        }
  • trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionTask.java

    r5564 r5593  
    110110    // Create progress monitor box. It will display itself as necessary.
    111111    // WARNING: ProgressMonitors seem to be extremely dodgy, and are not recommended!
    112     // ProgressMonitor spd = new ProgressMonitor(Gatherer.g_man, Dictionary.newget("SaveProgressDialog.Title", collection.getName()), null, 0, 100);
     112    // ProgressMonitor spd = new ProgressMonitor(Gatherer.g_man, Dictionary.get("SaveProgressDialog.Title", collection.getName()), null, 0, 100);
    113113    // spd.setMillisToDecideToPopup(100);
    114114    // spd.setMillisToPopup(100);
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r5581 r5593  
    7777        // If the source is the workspace then display an error message. Workspace is read only.
    7878        if(source.toString().equals("Workspace")) {
    79             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.Read_Only"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     79            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.Read_Only"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    8080            return;
    8181        }
     
    111111        //... check if it already exists.
    112112        if(folder_file.exists()) {
    113         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.Folder_Already_Exists", name), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     113        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.Folder_Already_Exists", name), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    114114        }
    115115        // Otherwise create it.
  • trunk/gli/src/org/greenstone/gatherer/file/FileNode.java

    r5581 r5593  
    238238        children = new ArrayList();
    239239        // Super Special Case: if the name of this node is the Tree.World string, then we actually map the collections installed in greenstone. The file in this case will actually by the collect directory of greenstone.
    240         if(file == null && title.equals(Dictionary.newget("Tree.World"))) {
     240        if(file == null && title.equals(Dictionary.get("Tree.World"))) {
    241241        ///atherer.println("Map the 'Greenstone Collections' node.");
    242242        // For each of the children directories, which are collections...
     
    387387    public void unmap() {
    388388    // You cannot unmap nodes that have no file basis.
    389     if(file != null || title.equals(Dictionary.newget("Tree.World"))) {
     389    if(file != null || title.equals(Dictionary.get("Tree.World"))) {
    390390        ///atherer.println("Unmap: " + this);
    391391        children = null;
  • trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java

    r5581 r5593  
    9090    progress.setBackground(Gatherer.config.getColor("coloring.collection_tree_background", false));
    9191    progress.setForeground(Gatherer.config.getColor("coloring.collection_tree_foreground", false));
    92     progress.setString(Dictionary.newget("FileActions.No_Activity"));
     92    progress.setString(Dictionary.get("FileActions.No_Activity"));
    9393    progress.setStringPainted(true);
    9494    args = null;
     
    138138    public boolean calculateSize(FileNode[] files) {
    139139    progress.reset();
    140     progress.setString(Dictionary.newget("FileActions.Calculating_Size"));
     140    progress.setString(Dictionary.get("FileActions.Calculating_Size"));
    141141    progress.setIndeterminate(true);
    142142    Vector remaining = new Vector();
     
    155155        }
    156156    }
    157     progress.setString(Dictionary.newget("FileActions.No_Activity"));
     157    progress.setString(Dictionary.get("FileActions.No_Activity"));
    158158    progress.setIndeterminate(false);
    159159    // Now we return if calculation was cancelled so that the FileManagers Task can skip the addJob phase correctly.
     
    239239                else {
    240240                ///atherer.println("Opps! This filename already exists. Give the user some options.");
    241                 Object[] options = { Dictionary.newget("General.Yes"), Dictionary.newget("FileActions.Yes_To_All"), Dictionary.newget("General.No"), Dictionary.newget("General.Cancel") };
    242                 int result = JOptionPane.showOptionDialog(Gatherer.g_man, Dictionary.newget("FileActions.File_Exists", target_file.getName()), Dictionary.newget("General.Warning"), JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]);
     241                Object[] options = { Dictionary.get("General.Yes"), Dictionary.get("FileActions.Yes_To_All"), Dictionary.get("General.No"), Dictionary.get("General.Cancel") };
     242                int result = JOptionPane.showOptionDialog(Gatherer.g_man, Dictionary.get("FileActions.File_Exists", target_file.getName()), Dictionary.get("General.Warning"), JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, options, options[0]);
    243243                switch(result) {
    244244                case 1: // Yes To All
     
    273273                if(job.type == FileJob.COPY) {
    274274                args[0] = Utility.formatPath("FileActions.Copying", source_file.getAbsolutePath(), file_status.getSize().width);
    275                 file_status.setText(Dictionary.newget("FileActions.Copying", args));
     275                file_status.setText(Dictionary.get("FileActions.Copying", args));
    276276                }
    277277                else {
    278278                args[0] = Utility.formatPath("FileActions.Moving", source_file.getAbsolutePath(), file_status.getSize().width);
    279                 file_status.setText(Dictionary.newget("FileActions.Moving", args));
     279                file_status.setText(Dictionary.get("FileActions.Moving", args));
    280280                }
    281281                args = null;
     
    292292                    cancel_action = true;
    293293                    // Show warning.
    294                     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.File_Not_Found_Message", source_file.getName()), Dictionary.newget("FileActions.File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE);
     294                    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.File_Not_Found_Message", source_file.getName()), Dictionary.get("FileActions.File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE);
    295295                    // Force refresh of source folder.
    296296                    source_model.refresh(new TreePath(((FileNode)origin_node.getParent()).getPath()));
     
    300300                    cancel_action = true;
    301301                    // Show warning.
    302                     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.File_Already_Exists_Message", target_file.getName()), Dictionary.newget("FileActions.File_Already_Exists_Title"), JOptionPane.ERROR_MESSAGE);
     302                    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.File_Already_Exists_Message", target_file.getName()), Dictionary.get("FileActions.File_Already_Exists_Title"), JOptionPane.ERROR_MESSAGE);
    303303                    // Nothing else can be done by the Gatherer.
    304304                }
     
    307307                    cancel_action = true;
    308308                    // Show warning. The message body of the expection explains how much more space is required for this file copy.
    309                     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.Insufficient_Space_Message", is_exception.getMessage()), Dictionary.newget("FileActions.Insufficient_Space_Title"), JOptionPane.ERROR_MESSAGE);
     309                    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.Insufficient_Space_Message", is_exception.getMessage()), Dictionary.get("FileActions.Insufficient_Space_Title"), JOptionPane.ERROR_MESSAGE);
    310310                    // Nothing else can be done by the Gatherer. In fact if we are really out of space I'm not even sure we can quit safely.
    311311                }
     
    314314                    cancel_action = true;
    315315                    // Show warning
    316                     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.Unknown_File_Error_Message"), Dictionary.newget("FileActions.Unknown_File_Error_Title"), JOptionPane.ERROR_MESSAGE);
     316                    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.Unknown_File_Error_Message"), Dictionary.get("FileActions.Unknown_File_Error_Title"), JOptionPane.ERROR_MESSAGE);
    317317                    // Nothing else we can do.
    318318                }
     
    321321                    cancel_action = true;
    322322                    // Show warning
    323                     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.Write_Not_Permitted_Message", target_file.getAbsolutePath()), Dictionary.newget("FileActions.Write_Not_Permitted_Title"), JOptionPane.ERROR_MESSAGE);
     323                    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.Write_Not_Permitted_Message", target_file.getAbsolutePath()), Dictionary.get("FileActions.Write_Not_Permitted_Title"), JOptionPane.ERROR_MESSAGE);
    324324                    // Nothing else we can do.
    325325                }
     
    377377                // Else inform the users that a directory already exists and files will be copied into it
    378378                //else {
    379                 //    JOptionPane.showMessageDialog(null, Dictionary.newget("Directory_Exists", target_file.toString()), Dictionary.newget("General.Warning"), JOptionPane.WARNING_MESSAGE);
     379                //    JOptionPane.showMessageDialog(null, Dictionary.get("Directory_Exists", target_file.toString()), Dictionary.get("General.Warning"), JOptionPane.WARNING_MESSAGE);
    380380                //}
    381381                // Queue non-filtered child files for copying. If this directory already existed, the child records will have to generate the undo jobs, as we don't want to entirely delete this directory if it already existed.
     
    400400                cancel_action = true;
    401401                // Show warning.
    402                 JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.File_Not_Found_Message", source_file.getName()), Dictionary.newget("FileActions.File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE);
     402                JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.File_Not_Found_Message", source_file.getName()), Dictionary.get("FileActions.File_Not_Found_Title"), JOptionPane.ERROR_MESSAGE);
    403403                // Force refresh of source folder.
    404404                source_model.refresh(new TreePath(((FileNode)origin_node.getParent()).getPath()));
     
    456456                String args[] = new String[1];
    457457                args[0] = "" + (queue.size() + 1) + "";
    458                 //job_status.setText(Dictionary.newget("Jobs", args));
     458                //job_status.setText(Dictionary.get("Jobs", args));
    459459                args[0] = Utility.formatPath("FileActions.Deleting", source_file.getAbsolutePath(), file_status.getSize().width);
    460                 file_status.setText(Dictionary.newget("FileActions.Deleting", args));
     460                file_status.setText(Dictionary.get("FileActions.Deleting", args));
    461461                args = null;
    462462
     
    592592            }
    593593            // Reset status area
    594             //job_status.setText(Dictionary.newget("No_Selection"));
    595             file_status.setText(Dictionary.newget("FileActions.No_Activity"));
     594            //job_status.setText(Dictionary.get("No_Selection"));
     595            file_status.setText(Dictionary.get("FileActions.No_Activity"));
    596596            progress.reset();
    597             progress.setString(Dictionary.newget("FileActions.No_Activity"));
     597            progress.setString(Dictionary.get("FileActions.No_Activity"));
    598598            yes_to_all = false;
    599599            completed_folder_mappings.clear();
  • trunk/gli/src/org/greenstone/gatherer/file/FileSystemModel.java

    r5564 r5593  
    112112        FileNode node = (FileNode) path.getLastPathComponent();
    113113        // If this error node is a dummy node (ie has no associated file) we can't unmap it, so we iterate through its children refreshing each in turn. The exception being Greenstone Collections, as it is a dummy node but we can map/unmap it
    114         if(node.getFile() == null && !node.toString().equals(Dictionary.newget("Tree.World"))) {
     114        if(node.getFile() == null && !node.toString().equals(Dictionary.get("Tree.World"))) {
    115115        for(int i = 0; i < node.getChildCount(); i++) {
    116116            FileNode child = (FileNode) node.getChildAt(i);
  • trunk/gli/src/org/greenstone/gatherer/gui/AboutDialog.java

    r5589 r5593  
    5959
    6060    public AboutDialog(JFrame parent) {
    61     super(parent, Dictionary.newget("AboutDialog.Title"), true);
     61    super(parent, Dictionary.get("AboutDialog.Title"), true);
    6262    this.self = this;
    6363    setSize(SIZE);
     
    7171    JLabel title_one_label = new JLabel();
    7272    Dictionary.setText(title_one_label, "AboutDialog.Title_One");
    73     JLabel title_two_label = new JLabel(Utility.PROGRAM_NAME + " " + Utility.PROGRAM_VERSION + " " + Dictionary.newget("AboutDialog.Date"));
     73    JLabel title_two_label = new JLabel(Utility.PROGRAM_NAME + " " + Utility.PROGRAM_VERSION + " " + Dictionary.get("AboutDialog.Date"));
    7474    JLabel title_three_label = new JLabel();
    7575    Dictionary.setText(title_three_label, "AboutDialog.Title_Two");
     
    113113
    114114    // Build text content
    115     text.append(Dictionary.newget("AboutDialog.Java_Req"));
     115    text.append(Dictionary.get("AboutDialog.Java_Req"));
    116116    text.append("\n");
    117     text.append(Dictionary.newget("AboutDialog.Java_Req_One"));
     117    text.append(Dictionary.get("AboutDialog.Java_Req_One"));
    118118    text.append("\n");
    119     text.append(Dictionary.newget("AboutDialog.Java_Req_Two"));
     119    text.append(Dictionary.get("AboutDialog.Java_Req_Two"));
    120120    text.append("\n\n");
    121     text.append("*****" + Dictionary.newget("AboutDialog.Acknowledgement") + "*****");
     121    text.append("*****" + Dictionary.get("AboutDialog.Acknowledgement") + "*****");
    122122    text.append("\n\n");
    123     text.append(Dictionary.newget("AboutDialog.Item0"));
     123    text.append(Dictionary.get("AboutDialog.Item0"));
    124124    text.append("\n\n");
    125     text.append(Dictionary.newget("AboutDialog.Item1"));
     125    text.append(Dictionary.get("AboutDialog.Item1"));
    126126    text.append("\n\n");
    127     text.append(Dictionary.newget("AboutDialog.Item2"));
     127    text.append(Dictionary.get("AboutDialog.Item2"));
    128128    text.append("\n\n");
    129     text.append(Dictionary.newget("AboutDialog.Item3"));
     129    text.append(Dictionary.get("AboutDialog.Item3"));
    130130    text.append("\n\n");
    131     text.append("*****" + Dictionary.newget("AboutDialog.Thanks") + "*****");
     131    text.append("*****" + Dictionary.get("AboutDialog.Thanks") + "*****");
    132132    text.append("\n\n");
    133     text.append(Dictionary.newget("AboutDialog.Item4"));
     133    text.append(Dictionary.get("AboutDialog.Item4"));
    134134    text.append("\n\n");
    135     text.append(Dictionary.newget("AboutDialog.Item5"));
     135    text.append(Dictionary.get("AboutDialog.Item5"));
    136136    text.append("\n\n");
    137     text.append(Dictionary.newget("AboutDialog.Item6"));
     137    text.append(Dictionary.get("AboutDialog.Item6"));
    138138    text.append("\n\n");
    139     text.append(Dictionary.newget("AboutDialog.Item7"));
     139    text.append(Dictionary.get("AboutDialog.Item7"));
    140140    text.append("\n\n");
    141     text.append(Dictionary.newget("AboutDialog.Item8"));
     141    text.append(Dictionary.get("AboutDialog.Item8"));
    142142    text.setCaretPosition(0);
    143143
  • trunk/gli/src/org/greenstone/gatherer/gui/CollectionPane.java

    r5571 r5593  
    199199        FileNode node = (FileNode) collection_tree.getModel().getRoot();
    200200        Gatherer.f_man.newFolder(collection_tree, node);
    201         //JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("FileActions.No_Parent_For_New_Folder"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     201        //JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("FileActions.No_Parent_For_New_Folder"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    202202        }
    203203    }
     
    228228    else {
    229229        String args[] = new String[1];
    230         args[0] = Dictionary.newget("Collection.No_Collection");
     230        args[0] = Dictionary.get("Collection.No_Collection");
    231231        Dictionary.registerText(collection_label, "Collection.Collection", args);
    232232        args = null;
     
    305305
    306306    args = new String[1];
    307     args[0] = Dictionary.newget("Collection.No_Collection");
     307    args[0] = Dictionary.get("Collection.No_Collection");
    308308    collection_label = new JLabel();
    309309    collection_label.setOpaque(true);
     
    557557            String[] args = new String[1];
    558558            args[0] = collection_tree.getSelectionDetails();
    559             show_metaaudit = new JMenuItem(Dictionary.newget("Menu.Metadata_View", args), KeyEvent.VK_V);
     559            show_metaaudit = new JMenuItem(Dictionary.get("Menu.Metadata_View", args), KeyEvent.VK_V);
    560560            show_metaaudit.addActionListener(this);
    561561            add(show_metaaudit);
    562562        }
    563563        if(tree == collection_tree && node != null && node.getFile() != null && node.getFile().isDirectory() && !node.isReadOnly()) {
    564             new_folder = new JMenuItem(Dictionary.newget("CollectionPopupMenu.New_Folder"), KeyEvent.VK_N);
     564            new_folder = new JMenuItem(Dictionary.get("CollectionPopupMenu.New_Folder"), KeyEvent.VK_N);
    565565            new_folder.addActionListener(this);
    566566            add(new_folder);
     
    568568        }
    569569        if(node == null || (node != null && !node.isReadOnly())) {
    570             delete = new JMenuItem(Dictionary.newget("CollectionPopupMenu.Delete"), KeyEvent.VK_D);
     570            delete = new JMenuItem(Dictionary.get("CollectionPopupMenu.Delete"), KeyEvent.VK_D);
    571571            delete.addActionListener(this);
    572572            add(delete);
     
    575575            String node_name = node.toString();
    576576            FileNode root = (FileNode) tree.getModel().getRoot();
    577             if(!node_name.equals(Dictionary.newget("Tree.World")) && !node_name.equals(Dictionary.newget("Tree.Root")) && !node_name.equals(Dictionary.newget("Tree.Public")) && !node_name.equals(Dictionary.newget("Tree.Private"))) {
     577            if(!node_name.equals(Dictionary.get("Tree.World")) && !node_name.equals(Dictionary.get("Tree.Root")) && !node_name.equals(Dictionary.get("Tree.Public")) && !node_name.equals(Dictionary.get("Tree.Private"))) {
    578578            // You can unmap 1st level nodes.
    579579            if(root.getIndex(node) != -1) {
    580                 unmap = new JMenuItem(Dictionary.newget("MappingPrompt.Unmap"), KeyEvent.VK_U);
     580                unmap = new JMenuItem(Dictionary.get("MappingPrompt.Unmap"), KeyEvent.VK_U);
    581581                unmap.addActionListener(this);
    582582                add(unmap);
     
    584584            // Or map any other level directories.
    585585            else {
    586                 map = new JMenuItem(Dictionary.newget("MappingPrompt.Map"), KeyEvent.VK_M);
     586                map = new JMenuItem(Dictionary.get("MappingPrompt.Map"), KeyEvent.VK_M);
    587587                map.addActionListener(this);
    588588                add(map);
  • trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java

    r5589 r5593  
    246246
    247247    JPanel options_area = new JPanel();
    248     options_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(Dictionary.newget("CreatePane.Options_Title"))));
     248    options_area.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(5,5,5,5), BorderFactory.createTitledBorder(Dictionary.get("CreatePane.Options_Title"))));
    249249    options_area.setLayout(new BorderLayout());
    250250    options_area.add(left, BorderLayout.WEST);
     
    475475
    476476        // Create tree.
    477         building = new OptionTreeNode(Dictionary.newget("CreatePane.Build"));
    478         building.setToolTipText(Dictionary.newget("CreatePane.Build_Tooltip"));
    479         importing = new OptionTreeNode(Dictionary.newget("CreatePane.Import"));
    480         importing.setToolTipText(Dictionary.newget("CreatePane.Import_Tooltip"));
    481         log = new OptionTreeNode(Dictionary.newget("CreatePane.Log"));
    482         log.setToolTipText(Dictionary.newget("CreatePane.Log_Tooltip"));
    483         options = new OptionTreeNode(Dictionary.newget("CreatePane.Options"));
     477        building = new OptionTreeNode(Dictionary.get("CreatePane.Build"));
     478        building.setToolTipText(Dictionary.get("CreatePane.Build_Tooltip"));
     479        importing = new OptionTreeNode(Dictionary.get("CreatePane.Import"));
     480        importing.setToolTipText(Dictionary.get("CreatePane.Import_Tooltip"));
     481        log = new OptionTreeNode(Dictionary.get("CreatePane.Log"));
     482        log.setToolTipText(Dictionary.get("CreatePane.Log_Tooltip"));
     483        options = new OptionTreeNode(Dictionary.get("CreatePane.Options"));
    484484
    485485        model = new DefaultTreeModel(options);
  • trunk/gli/src/org/greenstone/gatherer/gui/FileAssociationDialog.java

    r5589 r5593  
    255255    public void actionPerformed(ActionEvent event) {
    256256        JFileChooser chooser = new JFileChooser(new File(Utility.BASE_DIR));
    257         chooser.setDialogTitle(Dictionary.newget("FileAssociationDialog.Browse_Title"));
    258         chooser.setFileFilter(new ExtensionFileFilter(".bat", Dictionary.newget("FileAssociationDialog.Batch_File")));
    259         chooser.setFileFilter(new ExtensionFileFilter(".com", Dictionary.newget("FileAssociationDialog.Command_File")));
    260         chooser.setFileFilter(new ExtensionFileFilter(".exe", Dictionary.newget("FileAssociationDialog.Executable_File")));
     257        chooser.setDialogTitle(Dictionary.get("FileAssociationDialog.Browse_Title"));
     258        chooser.setFileFilter(new ExtensionFileFilter(".bat", Dictionary.get("FileAssociationDialog.Batch_File")));
     259        chooser.setFileFilter(new ExtensionFileFilter(".com", Dictionary.get("FileAssociationDialog.Command_File")));
     260        chooser.setFileFilter(new ExtensionFileFilter(".exe", Dictionary.get("FileAssociationDialog.Executable_File")));
    261261        chooser.setAcceptAllFileFilterUsed(true);
    262262        int return_val = chooser.showOpenDialog(null);
  • trunk/gli/src/org/greenstone/gatherer/gui/Filter.java

    r5564 r5593  
    101101    for(int i = 0; i < DEFAULTS.length; i++) {
    102102        try {
    103         Entry entry = new Entry(Dictionary.newget("Filter." + i), Pattern.compile(DEFAULTS[i]));
     103        Entry entry = new Entry(Dictionary.get("Filter." + i), Pattern.compile(DEFAULTS[i]));
    104104        combobox.add(entry);
    105105        }
     
    238238            ///ystem.err.println("Filter = " + temp_str);
    239239            // Ignore any string which matches a predefined filter, starting with All Files.
    240             if(temp_str.equals(Dictionary.newget("Filter.All_Files"))) {
     240            if(temp_str.equals(Dictionary.get("Filter.All_Files"))) {
    241241            }
    242242            // HTM & HTML
    243             else if(temp_str.equals(Dictionary.newget("Filter.0"))) {
     243            else if(temp_str.equals(Dictionary.get("Filter.0"))) {
    244244            }
    245245            // XML
    246             else if(temp_str.equals(Dictionary.newget("Filter.1"))) {
     246            else if(temp_str.equals(Dictionary.get("Filter.1"))) {
    247247            }
    248248            // Text files
    249             else if(temp_str.equals(Dictionary.newget("Filter.2"))) {
     249            else if(temp_str.equals(Dictionary.get("Filter.2"))) {
    250250            }
    251251            // Images
    252             else if(temp_str.equals(Dictionary.newget("Filter.3"))) {
     252            else if(temp_str.equals(Dictionary.get("Filter.3"))) {
    253253            }
    254254            else {
     
    273273        catch (PatternSyntaxException error) {
    274274        if(first) {
    275             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("Filter.Invalid_Pattern"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     275            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("Filter.Invalid_Pattern"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    276276        }
    277277        }
     
    318318        }
    319319        else if (pattern == null) {
    320         result = Dictionary.newget("Filter.All_Files");
     320        result = Dictionary.get("Filter.All_Files");
    321321        }
    322322        else {
  • trunk/gli/src/org/greenstone/gatherer/gui/GComboBox.java

    r5589 r5593  
    6767    public GComboBox(ComboBoxModel model) {
    6868    super(model);
     69    init();
     70    }
     71
     72    public GComboBox(Gatherer gatherer) {
     73    super();
    6974    init();
    7075    }
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r5590 r5593  
    148148    thread_group = bob.getThreadGroup();
    149149    // Set up some other UI stuff. (fonts handled in Gatherer.main())
    150     UIManager.put("FileChooser.lookInLabelText", Dictionary.newget("SaveCollectionBox.Look_In"));
    151     UIManager.put("FileChooser.filesOfTypeLabelText", Dictionary.newget("SaveCollectionBox.Files_Of_Type"));
    152     UIManager.put("FileChooser.fileNameLabelText", Dictionary.newget("SaveCollectionBox.File_Name"));
     150    UIManager.put("FileChooser.lookInLabelText", Dictionary.get("SaveCollectionBox.Look_In"));
     151    UIManager.put("FileChooser.filesOfTypeLabelText", Dictionary.get("SaveCollectionBox.Files_Of_Type"));
     152    UIManager.put("FileChooser.fileNameLabelText", Dictionary.get("SaveCollectionBox.File_Name"));
    153153    }
    154154    /** Any implementation of <i>ActionListener</i> must include this method so that we can be informed when an action has occured. In this case we are listening to actions from the menu-bar, and should react appropriately.
     
    369369    }
    370370    else {
    371         this.setTitle(Utility.PROGRAM_NAME + ": " + Dictionary.newget("Collection.No_Collection"));
     371        this.setTitle(Utility.PROGRAM_NAME + ": " + Dictionary.get("Collection.No_Collection"));
    372372    }
    373373    // Now is a good time to force a garbage collect.
     
    389389        }
    390390        else {
    391         this.setTitle(Utility.PROGRAM_NAME + ": " + Dictionary.newget("Collection.No_Collection"));
     391        this.setTitle(Utility.PROGRAM_NAME + ": " + Dictionary.get("Collection.No_Collection"));
    392392        }
    393393        // Pretty corner icon
     
    539539    public void setTabEnabled(String rawname, boolean state) {
    540540    // Retrieve the dictionary based name.
    541     String name = Dictionary.newget("GUI." + rawname);
     541    String name = Dictionary.get("GUI." + rawname);
    542542    int index = tab_pane.indexOfTab(name);
    543543    // Of course we may not have this tab available.
  • trunk/gli/src/org/greenstone/gatherer/gui/LockFileDialog.java

    r5564 r5593  
    3131
    3232    public LockFileDialog(JFrame parent, String name, File lock_file) {
    33     super(parent, Dictionary.newget("LockFileDialog.Title"), true);
     33    super(parent, Dictionary.get("LockFileDialog.Title"), true);
    3434    setSize(SIZE);
    3535    setJMenuBar(new SimpleMenuBar("openingacollection"));
     
    167167    }
    168168    else {
    169         value = Dictionary.newget("LockFileDialog.Error");
     169        value = Dictionary.get("LockFileDialog.Error");
    170170    }
    171171    return value;
  • trunk/gli/src/org/greenstone/gatherer/gui/MenuBar.java

    r5564 r5593  
    231231    Dictionary.registerText(metadata_export, "Menu.Metadata_Export");
    232232
    233     metadata_view = new MagicMenuItem(Dictionary.newget("Menu.Metadata_View") + " " + Dictionary.newget("FileActions.No_Selection"), KeyEvent.VK_A);
     233    metadata_view = new MagicMenuItem(Dictionary.get("Menu.Metadata_View") + " " + Dictionary.get("FileActions.No_Selection"), KeyEvent.VK_A);
    234234    metadata_view.addActionListener(Gatherer.g_man);   
    235235
     
    371371    ///ystem.err.println("**** Set suffix: " + metaaudit_suffix);
    372372    if(metaaudit_suffix == null) {
    373         metadata_view.setText(Dictionary.newget("Menu.Metadata_View") + " " + Dictionary.newget("FileActions.No_Selection"));
     373        metadata_view.setText(Dictionary.get("Menu.Metadata_View") + " " + Dictionary.get("FileActions.No_Selection"));
    374374        metadata_view.setEnabled(false);
    375375    }
    376376    else {
    377377        ///ystem.err.println("Set metadata view suffix: " + metaaudit_suffix);
    378         metadata_view.setText(Dictionary.newget("Menu.Metadata_View") + " " + metaaudit_suffix);
     378        metadata_view.setText(Dictionary.get("Menu.Metadata_View") + " " + metaaudit_suffix);
    379379        metadata_view.setEnabled(true);
    380380    }
  • trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java

    r5589 r5593  
    324324        collection_label.setBackground(Color.lightGray);
    325325        collection_label.setForeground(Color.black);
    326         collection_tree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode(Dictionary.newget("Collection.No_Collection"))));
     326        collection_tree.setModel(new DefaultTreeModel(new DefaultMutableTreeNode(Dictionary.get("Collection.No_Collection"))));
    327327    }
    328328
     
    930930        String[] args = new String[1];
    931931        args[0] = collection_tree.getSelectionDetails();
    932         JMenuItem show_metaaudit = new JMenuItem(Dictionary.newget("Menu.Metadata_View", args), KeyEvent.VK_V);
     932        JMenuItem show_metaaudit = new JMenuItem(Dictionary.get("Menu.Metadata_View", args), KeyEvent.VK_V);
    933933        show_metaaudit.addActionListener(this);
    934934        add(show_metaaudit);
  • trunk/gli/src/org/greenstone/gatherer/gui/MirrorPane.java

    r5536 r5593  
    171171    button_pane.add(download_button);
    172172
    173     edit_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(2,0,0,0), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("Mirroring.Download_Controls")), BorderFactory.createEmptyBorder(2,2,2,2))));
     173    edit_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(2,0,0,0), BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("Mirroring.Download_Controls")), BorderFactory.createEmptyBorder(2,2,2,2))));
    174174    edit_pane.setLayout(new BorderLayout());
    175175    edit_pane.add(details_pane, BorderLayout.CENTER);
     
    204204        }
    205205        catch(MalformedURLException error) {
    206         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("Mirroring.Invalid_URL"), Dictionary.newget("Mirroring.Invalid_URL__Title"), JOptionPane.ERROR_MESSAGE);
     206        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("Mirroring.Invalid_URL"), Dictionary.get("Mirroring.Invalid_URL__Title"), JOptionPane.ERROR_MESSAGE);
    207207        }
    208208        if(url != null) {
  • trunk/gli/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r5571 r5593  
    7474    // Sort the result.
    7575    Collections.sort(base_collection_model);
    76     base_collection_model.add(0, new Item(null, Dictionary.newget("NewCollectionPrompt.NewCollection")));
     76    base_collection_model.add(0, new Item(null, Dictionary.get("NewCollectionPrompt.NewCollection")));
    7777
    7878    // Creation
     
    298298        title_final = title.getText();
    299299        if(title_final.length() == 0) {
    300         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("NewCollectionPrompt.Title_Error"), Dictionary.newget("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
     300        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Title_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    301301        title.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    302302        title.setBackground(Gatherer.config.getColor("coloring.error_background", false));
     
    310310        for(int i = 0; children != null && i < children.length; i++) {
    311311            if(children[i].getName().equals(name_final)) {
    312             JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("NewCollectionPrompt.Name_Error"), Dictionary.newget("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
     312            JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Name_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    313313            file.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    314314            file.setBackground(Gatherer.config.getColor("coloring.error_background", false));
     
    318318        }
    319319        else {
    320         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("NewCollectionPrompt.Name_Error"), Dictionary.newget("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
     320        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Name_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    321321        file.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    322322        file.setBackground(Gatherer.config.getColor("coloring.error_background", false));
     
    325325        email_final = address.getText() + "@" + host.getText();
    326326        if(email_final.length() == 0 || email_final.startsWith("@") || email_final.endsWith("@")) {
    327         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("NewCollectionPrompt.Email_Error"), Dictionary.newget("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
     327        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Email_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    328328        address.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    329329        address.setBackground(Gatherer.config.getColor("coloring.error_background", false));
     
    334334        description_final = description.getText();
    335335        if(description_final.length() == 0) {
    336         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("NewCollectionPrompt.Description_Error"), Dictionary.newget("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
     336        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("NewCollectionPrompt.Description_Error"), Dictionary.get("NewCollectionPrompt.Error"), JOptionPane.ERROR_MESSAGE);
    337337        description.setForeground(Gatherer.config.getColor("coloring.error_foreground", false));
    338338        description.setBackground(Gatherer.config.getColor("coloring.error_background", false));
  • trunk/gli/src/org/greenstone/gatherer/gui/NewFolderPrompt.java

    r5589 r5593  
    2121
    2222    public NewFolderPrompt(FileNode node) {
    23     super(Gatherer.g_man, Dictionary.newget("NewFolderPrompt.Title"), true);
     23    super(Gatherer.g_man, Dictionary.get("NewFolderPrompt.Title"), true);
    2424    this.node = node;
    2525    }
     
    7979    {
    8080    File file = node.getFile();
    81     String default_name = Dictionary.newget("NewFolderPrompt.Default_Folder_Name");
     81    String default_name = Dictionary.get("NewFolderPrompt.Default_Folder_Name");
    8282    File temp_file = new File(file, default_name);
    8383    int count = 1;
  • trunk/gli/src/org/greenstone/gatherer/gui/OpenCollectionDialog.java

    r5536 r5593  
    6565    // Other initialization
    6666    setAcceptAllFileFilterUsed(false);
    67     setDialogTitle(Dictionary.newget("OpenCollectionDialog.Title"));
     67    setDialogTitle(Dictionary.get("OpenCollectionDialog.Title"));
    6868    setFileFilter(new GathererFilter());
    6969    setFileSystemView(new GathererFileSystemView());
     
    190190    // The description of this filter
    191191    public String getDescription() {
    192         return Dictionary.newget("OpenCollectionDialog.Collection");
     192        return Dictionary.get("OpenCollectionDialog.Collection");
    193193    }
    194194    }
     
    241241        if (file.getName().endsWith(".col")) {
    242242        if (!lockExists(file)) {
    243             description = Dictionary.newget("OpenCollectionDialog.Normal_Collection");
     243            description = Dictionary.get("OpenCollectionDialog.Normal_Collection");
    244244        }
    245245        else {
    246             description = Dictionary.newget("OpenCollectionDialog.Locked_Collection");
     246            description = Dictionary.get("OpenCollectionDialog.Locked_Collection");
    247247        }
    248248        }
  • trunk/gli/src/org/greenstone/gatherer/gui/OptionsPane.java

    r5536 r5593  
    541541        switch (success) {
    542542        case SUCCESSFUL:
    543             d.append(Dictionary.newget("OptionsPane.Successful"));
     543            d.append(Dictionary.get("OptionsPane.Successful"));
    544544            break;
    545545        case UNSUCCESSFUL:
    546             d.append(Dictionary.newget("OptionsPane.Unsuccessful"));
     546            d.append(Dictionary.get("OptionsPane.Unsuccessful"));
    547547            break;
    548548        case CANCELLED:
    549             d.append(Dictionary.newget("OptionsPane.Cancelled"));
     549            d.append(Dictionary.get("OptionsPane.Cancelled"));
    550550            break;
    551551        default:
    552             d.append(Dictionary.newget("OptionsPane.Unknown"));
     552            d.append(Dictionary.get("OptionsPane.Unknown"));
    553553        }
    554554        display = d.toString();
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r5589 r5593  
    270270        String value = (String) warning_preferences.get(property);
    271271        // Remove 'warning.'
    272         String title = Dictionary.newget(property.substring(8) + ".Title");
     272        String title = Dictionary.get(property.substring(8) + ".Title");
    273273        Entry entry = new Entry(title, value.equalsIgnoreCase(TRUE));
    274274        entry.setProperty(property);
     
    533533        Gatherer.dictionary.changeDictionary(entry.getLocale());
    534534        // Display message
    535         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("Preferences.General.Restart_Required"), Dictionary.newget("Preferences.General.Restart_Required"), JOptionPane.WARNING_MESSAGE);
     535        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("Preferences.General.Restart_Required"), Dictionary.get("Preferences.General.Restart_Required"), JOptionPane.WARNING_MESSAGE);
    536536        }
    537537    }
  • trunk/gli/src/org/greenstone/gatherer/gui/WarningDialog.java

    r5589 r5593  
    183183    }
    184184    else {
    185         JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("WarningDialog.Invalid_Value"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     185        JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("WarningDialog.Invalid_Value"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    186186    }
    187187    }
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/AutofilterDialog.java

    r5589 r5593  
    169169    Dictionary.setText(order_label, "Autofilter.Order");
    170170    order = new JComboBox();
    171     order.addItem(Dictionary.newget("Autofilter.Ascending"));
    172     order.addItem(Dictionary.newget("Autofilter.Descending"));
     171    order.addItem(Dictionary.get("Autofilter.Ascending"));
     172    order.addItem(Dictionary.get("Autofilter.Descending"));
    173173    Dictionary.setTooltip(order, "Autofilter.Order_Tooltip");
    174174
    175175    // Assign values to method comboboxes.
    176176    for(int i = 0; i < Autofilter.METHOD_LIST.length; i++) {
    177         first_method.addItem(Dictionary.newget("Autofilter." + Autofilter.METHOD_LIST[i]));
    178         second_method.addItem(Dictionary.newget("Autofilter." + Autofilter.METHOD_LIST[i]));
     177        first_method.addItem(Dictionary.get("Autofilter." + Autofilter.METHOD_LIST[i]));
     178        second_method.addItem(Dictionary.get("Autofilter." + Autofilter.METHOD_LIST[i]));
    179179    }
    180180    JPanel button_pane = new JPanel();
     
    242242    custom_pane.add(second_pane);
    243243
    244     control.add(Dictionary.newget("Autofilter.Filter_By_Value"), value_pane);
    245     control.add(Dictionary.newget("Autofilter.Custom_Filter"), custom_pane);
     244    control.add(Dictionary.get("Autofilter.Filter_By_Value"), value_pane);
     245    control.add(Dictionary.get("Autofilter.Custom_Filter"), custom_pane);
    246246
    247247    button_pane.setBorder(BorderFactory.createEmptyBorder(5,0,0,0));
  • trunk/gli/src/org/greenstone/gatherer/gui/metaaudit/MetaAuditModel.java

    r5564 r5593  
    7777    String result;
    7878    if(column == 0) {
    79         result = Dictionary.newget("AuditTable.File");
     79        result = Dictionary.get("AuditTable.File");
    8080    }
    8181    else {
  • trunk/gli/src/org/greenstone/gatherer/gui/table/GTableModel.java

    r5571 r5593  
    6363    private ModelBuilder builder = null;
    6464
    65     static final private String[] COLUMN_NAMES = {"", Dictionary.newget("Metadata.Element"),  Dictionary.newget("Metadata.Value")};
     65    static final private String[] COLUMN_NAMES = {"", Dictionary.get("Metadata.Element"),  Dictionary.get("Metadata.Value")};
    6666
    6767
  • trunk/gli/src/org/greenstone/gatherer/gui/tree/DragTree.java

    r5590 r5593  
    222222        }
    223223        else {
    224         String title = getSelectionCount() + Dictionary.newget("Tree.Files");
     224        String title = getSelectionCount() + Dictionary.get("Tree.Files");
    225225        label = new JLabel(title, ((DefaultTreeCellRenderer)getCellRenderer()).getClosedIcon(), JLabel.CENTER);
    226226        title = null;
  • trunk/gli/src/org/greenstone/gatherer/help/HelpFrame.java

    r5581 r5593  
    7878    view = new CalHTMLPane(new CalHTMLPreferences(), new Observer(), "Help Pages");
    7979
    80     HelpItem rootNode = new HelpItem(Dictionary.newget("Help.Contents"), "<null>");
     80    HelpItem rootNode = new HelpItem(Dictionary.get("Help.Contents"), "<null>");
    8181    model = new ContentsModel(rootNode);
    8282    contents = new JTree((DefaultTreeModel) model);
  • trunk/gli/src/org/greenstone/gatherer/mem/MEMNode.java

    r5564 r5593  
    161161        }
    162162        v = null;
    163                 // Add the profile set.
    164         children.add(new MEMNode(PROFILER, Dictionary.newget("MEM.Profiles"), this));
     163        // Add the profile set.
     164        children.add(new MEMNode(PROFILER, Dictionary.get("MEM.Profiles"), this));
    165165        break;
    166166    case SET: // Add the elements as children
  • trunk/gli/src/org/greenstone/gatherer/mem/MetadataEditorManager.java

    r5590 r5593  
    143143    this.self = this;
    144144
    145     dialog_options[0] = Dictionary.newget("General.OK");
    146     dialog_options[1] = Dictionary.newget("General.Cancel");
     145    dialog_options[0] = Dictionary.get("General.OK");
     146    dialog_options[1] = Dictionary.get("General.Cancel");
    147147
    148148    // Creation
     
    386386    set_attributes_scroll.setViewportView(set_attributes);
    387387
    388     set_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2)));
     388    set_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2)));
    389389    set_attributes_pane.setLayout(new BorderLayout());
    390390    set_attributes_pane.add(set_attributes_scroll, BorderLayout.CENTER);
    391391       
    392     set_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("MEM.Set_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));
     392    set_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Set_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));
    393393    set_details_pane.setLayout(new BorderLayout());
    394394    //set_details_pane.add(set_name_pane, BorderLayout.NORTH);
     
    401401    element_attributes_scroll.setViewportView(element_attributes);
    402402
    403     element_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2)));
     403    element_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Attributes")), BorderFactory.createEmptyBorder(2,2,2,2)));
    404404    element_attributes_pane.setLayout(new BorderLayout());
    405405    element_attributes_pane.add(element_attributes_scroll, BorderLayout.CENTER);
    406406         
    407     element_values_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("MEM.Values")), BorderFactory.createEmptyBorder(2,2,2,2)));
     407    element_values_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Values")), BorderFactory.createEmptyBorder(2,2,2,2)));
    408408    //element_values_pane.setLayout(new BorderLayout());
    409409    //element_values_pane.add(new JScrollPane(element_values), BorderLayout.CENTER);
     
    416416    element_inner_pane.add(element_values_pane);
    417417         
    418     element_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("MEM.Element_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));
     418    element_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Element_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));
    419419    element_details_pane.setLayout(new BorderLayout());
    420420    //element_details_pane.add(element_name_pane, BorderLayout.NORTH);
     
    427427    profile_attributes_scroll.setViewportView(profile_attributes);
    428428
    429     profile_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("MEM.Profiles")), BorderFactory.createEmptyBorder(2,2,2,2)));
     429    profile_attributes_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Profiles")), BorderFactory.createEmptyBorder(2,2,2,2)));
    430430    profile_attributes_pane.setLayout(new BorderLayout());
    431431    profile_attributes_pane.add(profile_attributes_scroll, BorderLayout.CENTER);
    432432
    433     profile_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.newget("MEM.Profile_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));
     433    profile_details_pane.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createTitledBorder(Dictionary.get("MEM.Profile_Details")), BorderFactory.createEmptyBorder(2,2,2,2)));
    434434    profile_details_pane.setLayout(new BorderLayout());
    435435    //profile_details_pane.add(profile_name_pane, BorderLayout.NORTH);
     
    601601        JPanel center_pane = new JPanel();
    602602        center_pane.setOpaque(false);
    603         value = new ComboArea(Dictionary.newget("MEM.Values"), LABEL_SIZE);
     603        value = new ComboArea(Dictionary.get("MEM.Values"), LABEL_SIZE);
    604604        value.setOpaque(false);
    605605
     
    885885        else {
    886886        cont = false;
    887         JOptionPane.showMessageDialog(self, Dictionary.newget("MEM.Attribute_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     887        JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Attribute_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    888888        }
    889889
     
    917917        else {
    918918        cont = false;
    919         JOptionPane.showMessageDialog(self, Dictionary.newget("MEM.Attribute_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     919        JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Attribute_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    920920        }
    921921
     
    10731073        // Otherwise show an error message and do not proceed.
    10741074        else {
    1075             JOptionPane.showMessageDialog(self, Dictionary.newget("MEM.Element_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     1075            JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Element_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    10761076        }
    10771077        name_str = null;
     
    10921092            // Warn the user that they can't do that dave.
    10931093            else {
    1094             JOptionPane.showMessageDialog(self, Dictionary.newget("MEM.Cannot_Add_Elements_To_Greenstone_MDS"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     1094            JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Cannot_Add_Elements_To_Greenstone_MDS"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    10951095            }
    10961096        }
     
    12011201        // Otherwise warn the user and don't hide the prompt.
    12021202        else {
    1203             JOptionPane.showMessageDialog(self, Dictionary.newget("MEM.File_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     1203            JOptionPane.showMessageDialog(self, Dictionary.get("MEM.File_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    12041204        }
    12051205        name_str = null;
     
    13291329        // Otherwise show a warning.
    13301330        else {
    1331             JOptionPane.showMessageDialog(self, Dictionary.newget("MEM.Set_Already_Exists"), Dictionary.newget("General.Error"), JOptionPane.ERROR_MESSAGE);
     1331            JOptionPane.showMessageDialog(self, Dictionary.get("MEM.Set_Already_Exists"), Dictionary.get("General.Error"), JOptionPane.ERROR_MESSAGE);
    13321332        }
    13331333        name_str = null;
     
    16521652    public void actionPerformed(ActionEvent event) {
    16531653        if(current_attribute != -1) {
    1654         int result = JOptionPane.showOptionDialog(self, Dictionary.newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Attribute")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
     1654        int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Attribute")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
    16551655        // Remove this attribute
    16561656        if(result == 0) {
     
    17001700    public void actionPerformed(ActionEvent event) {
    17011701        if(current_element != null) {
    1702         int result = JOptionPane.showOptionDialog(self, Dictionary.newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Element")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
     1702        int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Element")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
    17031703        // Remove this attribute
    17041704        if(result == 0) {
     
    17281728    public void actionPerformed(ActionEvent event) {
    17291729        if(current_collection_file != null) {
    1730         int result = JOptionPane.showOptionDialog(self, Dictionary.newget("MEM.Confirm_Removal", Dictionary.newget("MEM.File")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
     1730        int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.File")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
    17311731        // Remove the current collection file profile from the profiler.
    17321732        if(result == 0) {
     
    17531753    public void actionPerformed(ActionEvent event) {
    17541754        if(current_set != null) {
    1755         int result = JOptionPane.showOptionDialog(self, Dictionary.newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Set")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
     1755        int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Set")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
    17561756        // Remove the currently selected set
    17571757        if(result == 0) {
     
    17781778    public void actionPerformed(ActionEvent event) {
    17791779        if(current_value_node != null) {                 
    1780         int result = JOptionPane.showOptionDialog(self, Dictionary.newget("MEM.Confirm_Removal", Dictionary.newget("MEM.Value")), Dictionary.newget("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
     1780        int result = JOptionPane.showOptionDialog(self, Dictionary.get("MEM.Confirm_Removal", Dictionary.get("MEM.Value")), Dictionary.get("MEM.Confirm_Removal_Title"), JOptionPane.DEFAULT_OPTION, JOptionPane.QUESTION_MESSAGE, null, dialog_options, dialog_options[0]);
    17811781        // Remove the current selected value
    17821782        if(result == 0) {
     
    19091909                String action = Gatherer.c_man.msm.profiler.getAction(current_collection_file, source);
    19101910                if (action == null) {
    1911                 action = Dictionary.newget("MEM.Ignore");
     1911                action = Dictionary.get("MEM.Ignore");
    19121912                }
    19131913                attributes.add(new Attribute(source, action));
    19141914            }
    1915             atm = new AttributeTableModel(attributes, Dictionary.newget("MEM.Source"), Dictionary.newget("MEM.Target"), Dictionary.newget("MEM.Ignore"));
     1915            atm = new AttributeTableModel(attributes, Dictionary.get("MEM.Source"), Dictionary.get("MEM.Target"), Dictionary.get("MEM.Ignore"));
    19161916            //current_node.setModel(atm);
    19171917            }
     
    19271927            atm = current_node.getModel();
    19281928            if(atm == null) {
    1929             atm = new AttributeTableModel(current_element.getAttributes(), Dictionary.newget("MEM.Name"), Dictionary.newget("MEM.Language_Code"), Dictionary.newget("MEM.Value"), "");
     1929            atm = new AttributeTableModel(current_element.getAttributes(), Dictionary.get("MEM.Name"), Dictionary.get("MEM.Language_Code"), Dictionary.get("MEM.Value"), "");
    19301930            //current_node.setModel(atm);
    19311931            }
     
    19651965                attribute = null;
    19661966            }
    1967             atm = new AttributeTableModel(attributes, Dictionary.newget("MEM.Name"), Dictionary.newget("MEM.Value"), "");
     1967            atm = new AttributeTableModel(attributes, Dictionary.get("MEM.Name"), Dictionary.get("MEM.Value"), "");
    19681968            //current_node.setModel(atm);
    19691969            temp = null;
  • trunk/gli/src/org/greenstone/gatherer/msm/ExportMDSPrompt.java

    r5589 r5593  
    221221        JFileChooser chooser = new JFileChooser(new File(Utility.METADATA_DIR));
    222222        javax.swing.filechooser.FileFilter filter = new MDSFileFilter();
    223         chooser.setApproveButtonText(Dictionary.newget("General.OK"));
     223        chooser.setApproveButtonText(Dictionary.get("General.OK"));
    224224        chooser.setFileFilter(filter);
    225225        int returnVal = chooser.showSaveDialog(Gatherer.g_man);
  • trunk/gli/src/org/greenstone/gatherer/msm/GreenstoneArchiveParser.java

    r5589 r5593  
    8282            args[0] = document_directories[i].getName();
    8383            args[1] = String.valueOf(count);
    84             shell.fireMessage(GShell.IMPORT, shell.typeAsString(GShell.IMPORT) + "> " + Dictionary.newget("GShell.Extracted", args), GShell.OK);
     84            shell.fireMessage(GShell.IMPORT, shell.typeAsString(GShell.IMPORT) + "> " + Dictionary.get("GShell.Extracted", args), GShell.OK);
    8585            args = null;
    8686            progress.increment();
  • trunk/gli/src/org/greenstone/gatherer/msm/MDSFileFilter.java

    r5564 r5593  
    5151     */
    5252    public MDSFileFilter() {
    53     description = Dictionary.newget("MSMPrompt.File_Filter_Description");
     53    description = Dictionary.get("MSMPrompt.File_Filter_Description");
    5454    }
    5555
  • trunk/gli/src/org/greenstone/gatherer/msm/MSMPrompt.java

    r5589 r5593  
    109109    String args[] = new String[2];
    110110    args[0] = mde_new.getAttribute("name");
    111     args[1] = Dictionary.newget(reason);
    112     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("MSMPrompt.Add_Failed", args), Dictionary.newget("MSMPrompt.Add_Failed_Title"), JOptionPane.ERROR_MESSAGE);
     111    args[1] = Dictionary.get(reason);
     112    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("MSMPrompt.Add_Failed", args), Dictionary.get("MSMPrompt.Add_Failed_Title"), JOptionPane.ERROR_MESSAGE);
    113113    }
    114114
     
    215215    JPanel current_pane = new JPanel();
    216216    current_pane.setLayout(new BorderLayout());
    217     current_pane.setBorder(BorderFactory.createTitledBorder(Dictionary.newget("MSMPrompt.Current_Values")));
     217    current_pane.setBorder(BorderFactory.createTitledBorder(Dictionary.get("MSMPrompt.Current_Values")));
    218218    JScrollPane scroll = new JScrollPane(cur_values);
    219219    current_pane.add(scroll, BorderLayout.CENTER);
    220220
    221221    JPanel new_pane = new JPanel();
    222     new_pane.setBorder(BorderFactory.createTitledBorder(Dictionary.newget("MSMPrompt.New_Value")));
     222    new_pane.setBorder(BorderFactory.createTitledBorder(Dictionary.get("MSMPrompt.New_Value")));
    223223    new_pane.setLayout(new BorderLayout());
    224224    JLabel new_att = new JLabel(MSMUtils.getValue(att_new));
     
    349349        String opt_cur[] = MSMUtils.getOptionListDetails(mde_cur);
    350350        String ass_cur[] = MSMUtils.getAssignedValuesDetails(mds_cur, mde_cur);
    351         String details_cur = Dictionary.newget("MSMPrompt.Structural", str_cur);
     351        String details_cur = Dictionary.get("MSMPrompt.Structural", str_cur);
    352352        if(opt_cur != null) {
    353         details_cur = details_cur + "\n" + Dictionary.newget("MSMPrompt.OptionList", opt_cur);
     353        details_cur = details_cur + "\n" + Dictionary.get("MSMPrompt.OptionList", opt_cur);
    354354        }
    355355        if(ass_cur != null) {
    356         details_cur = details_cur + "\n" + Dictionary.newget("MSMPrompt.AssignedValues", ass_cur);
     356        details_cur = details_cur + "\n" + Dictionary.get("MSMPrompt.AssignedValues", ass_cur);
    357357        }
    358358        current_details.setText(details_cur);
     
    376376    String opt_new[] = MSMUtils.getOptionListDetails(mde_new);
    377377    String ass_new[] = MSMUtils.getAssignedValuesDetails(mds_new, mde_new);
    378     String details_new = Dictionary.newget("MSMPrompt.Structural", str_new);
     378    String details_new = Dictionary.get("MSMPrompt.Structural", str_new);
    379379    if(opt_new != null) {
    380         details_new = details_new + "\n" + Dictionary.newget("MSMPrompt.OptionList", opt_new);
     380        details_new = details_new + "\n" + Dictionary.get("MSMPrompt.OptionList", opt_new);
    381381    }
    382382    if(ass_new != null) {
    383         details_new = details_new + "\n" + Dictionary.newget("MSMPrompt.AssignedValues", ass_new);
     383        details_new = details_new + "\n" + Dictionary.get("MSMPrompt.AssignedValues", ass_new);
    384384    }
    385385    new_details.setText(details_new);
     
    564564    String args[] = new String[2];
    565565    args[0] = mde_cur.getAttribute("name");
    566     args[1] = Dictionary.newget(reason);
    567     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("MSMPrompt.Remove_Failed", args), Dictionary.newget("MSMPrompt.Remove_Failed_Title"), JOptionPane.ERROR_MESSAGE);
     566    args[1] = Dictionary.get(reason);
     567    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("MSMPrompt.Remove_Failed", args), Dictionary.get("MSMPrompt.Remove_Failed_Title"), JOptionPane.ERROR_MESSAGE);
    568568    }
    569569
     
    577577    args[0] = mde_new.getAttribute("name");
    578578    args[1] = new_name;
    579     args[2] = Dictionary.newget(reason);
    580     JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.newget("MSMPrompt.Rename_Failed", args), Dictionary.newget("MSMPrompt.Rename_Failed_Title"), JOptionPane.ERROR_MESSAGE);
     579    args[2] = Dictionary.get(reason);
     580    JOptionPane.showMessageDialog(Gatherer.g_man, Dictionary.get("MSMPrompt.Rename_Failed", args), Dictionary.get("MSMPrompt.Rename_Failed_Title"), JOptionPane.ERROR_MESSAGE);
    581581    }
    582582
     
    883883    JComboBox set = new JComboBox();
    884884    set.setBackground(Color.white);
    885     set.addItem(Dictionary.newget("MSMPrompt.Select_Set_None"));
     885    set.addItem(Dictionary.get("MSMPrompt.Select_Set_None"));
    886886    Vector sets = manager.getSets();
    887887    for(int i = sets.size() - 1; i >= 0; i--) {
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSet.java

    r5589 r5593  
    341341                // Failing all that set an error message
    342342        if(description == null) {
    343         description = Dictionary.newget("MSM.No_Description");
     343        description = Dictionary.get("MSM.No_Description");
    344344        }
    345345    }
     
    448448                // Failing all that set an error message
    449449        if(name == null) {
    450         name = Dictionary.newget("MSM.No_Name");
     450        name = Dictionary.get("MSM.No_Name");
    451451        }
    452452    }
  • trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java

    r5589 r5593  
    548548    javax.swing.filechooser.FileFilter filter = new MDSFileFilter();
    549549    chooser.setFileFilter(filter);
    550     int returnVal = chooser.showDialog(Gatherer.g_man, Dictionary.newget("MSMPrompt.File_Import"));
     550    int returnVal = chooser.showDialog(Gatherer.g_man, Dictionary.get("MSMPrompt.File_Import"));
    551551    if(returnVal == JFileChooser.APPROVE_OPTION) {
    552552        return importMDS(chooser.getSelectedFile(), true);
  • trunk/gli/src/org/greenstone/gatherer/shell/GImportProgressMonitor.java

    r5564 r5593  
    159159
    160160    public void saving() {
    161     progress_bar.setString(Dictionary.newget("SaveProgressDialog.Title"));
     161    progress_bar.setString(Dictionary.get("SaveProgressDialog.Title"));
    162162    progress_bar.setValue(MAX / (10 * 2));
    163163    }
     
    174174     */
    175175    public void start() {
    176     progress_bar.setString(Dictionary.newget("FileActions.Calculating_Size"));
     176    progress_bar.setString(Dictionary.get("FileActions.Calculating_Size"));
    177177    progress_bar.setValue(MAX / 10);
    178178    num_files = Gatherer.c_man.getCollection().getDocumentCount();
  • trunk/gli/src/org/greenstone/gatherer/shell/GShell.java

    r5581 r5593  
    151151        }
    152152        ///ystem.err.println("Command: " + command);
    153         fireMessage(type, Dictionary.newget("GShell.Command") + ": " + command, status);
     153        fireMessage(type, Dictionary.get("GShell.Command") + ": " + command, status);
    154154               
    155155        Runtime rt = Runtime.getRuntime();
     
    188188        if(prcs.exitValue() == 0) {
    189189            status = OK;
    190             fireMessage(type, typeAsString(type) + "> " + Dictionary.newget("GShell.Success"), status);
     190            fireMessage(type, typeAsString(type) + "> " + Dictionary.get("GShell.Success"), status);
    191191        }
    192192        else {
    193193            status = ERROR;
    194             fireMessage(type, typeAsString(type) + "> " + Dictionary.newget("GShell.Failure"), status);
     194            fireMessage(type, typeAsString(type) + "> " + Dictionary.get("GShell.Failure"), status);
    195195        }
    196196        }
     
    210210    // If no error occured, and this was an import process we now extract any new metadata from the archive directory.
    211211    if(status == OK && type == IMPORT) {
    212         fireMessage(type, typeAsString(type) + "> " + Dictionary.newget("GShell.Parsing_Metadata_Start"), status);
     212        fireMessage(type, typeAsString(type) + "> " + Dictionary.get("GShell.Parsing_Metadata_Start"), status);
    213213        new GreenstoneArchiveParser(progress, this);
    214         fireMessage(type, typeAsString(type) + "> " + Dictionary.newget("GShell.Parsing_Metadata_Complete"), status);
     214        fireMessage(type, typeAsString(type) + "> " + Dictionary.get("GShell.Parsing_Metadata_Complete"), status);
    215215    }
    216216    // Tidy up.
     
    292292    switch(type) {
    293293    case BUILD:
    294         name = Dictionary.newget("GShell.Build");
     294        name = Dictionary.get("GShell.Build");
    295295        break;
    296296    case IMPORT:
    297         name = Dictionary.newget("GShell.Import");
     297        name = Dictionary.get("GShell.Import");
    298298        break;
    299299    case NEW:
    300         name = Dictionary.newget("GShell.New");
     300        name = Dictionary.get("GShell.New");
    301301        break;
    302302    default:
    303         name = Dictionary.newget("GShell.Other");
     303        name = Dictionary.get("GShell.Other");
    304304    }
    305305    return name;
  • trunk/gli/src/org/greenstone/gatherer/util/DragTreeSelectionModel.java

    r5564 r5593  
    114114        args[0] = String.valueOf(file_count);
    115115        args[1] = String.valueOf(folder_count);
    116         suffix = Dictionary.newget("FileActions.Selected", args);
     116        suffix = Dictionary.get("FileActions.Selected", args);
    117117        }
    118118        else if(file_count > 1) {
    119119        args = new String[1];
    120120        args[0] = String.valueOf(file_count);
    121         suffix = Dictionary.newget("FileActions.Files_And_Directory_Selected", args);
     121        suffix = Dictionary.get("FileActions.Files_And_Directory_Selected", args);
    122122        }
    123123        else if(folder_count > 1) {
    124124        args = new String[1];
    125125        args[0] = String.valueOf(folder_count);
    126         suffix = Dictionary.newget("FileActions.File_And_Directories_Selected", args);
     126        suffix = Dictionary.get("FileActions.File_And_Directories_Selected", args);
    127127        }
    128128        else {
    129         suffix = Dictionary.newget("FileActions.File_And_Directory_Selected");
     129        suffix = Dictionary.get("FileActions.File_And_Directory_Selected");
    130130        }
    131131    }
     
    134134        args = new String[1];
    135135        args[0] = String.valueOf(file_count);
    136         suffix = Dictionary.newget("FileActions.Files_Selected", args);
     136        suffix = Dictionary.get("FileActions.Files_Selected", args);
    137137        }
    138138        else if(file_count == 1) {
    139         suffix = Dictionary.newget("FileActions.File_Selected");
     139        suffix = Dictionary.get("FileActions.File_Selected");
    140140        }
    141141    }
     
    144144        args = new String[1];
    145145        args[0] = String.valueOf(folder_count);
    146         suffix = Dictionary.newget("FileActions.Directories_Selected", args);
     146        suffix = Dictionary.get("FileActions.Directories_Selected", args);
    147147        }
    148148        else {
    149         suffix = Dictionary.newget("FileActions.Directory_Selected");
     149        suffix = Dictionary.get("FileActions.Directory_Selected");
    150150        }
    151151    }
  • trunk/gli/src/org/greenstone/gatherer/util/Utility.java

    r5581 r5593  
    485485     */
    486486    static public String formatPath(String key, String raw, int width) {
    487     JLabel label = new JLabel(Dictionary.newget(key, raw));
     487    JLabel label = new JLabel(Dictionary.get(key, raw));
    488488    int position = -1;
    489489    while(label.getPreferredSize().width > width && (position = raw.indexOf(File.separator)) != -1) {
    490490        raw = "..." + raw.substring(position + 1);
    491         label.setText(Dictionary.newget(key, raw));
     491        label.setText(Dictionary.get(key, raw));
    492492    }
    493493    if(raw.indexOf(File.separator) == -1 && raw.startsWith("...")) {
     
    571571    int year = current.get(Calendar.YEAR);
    572572
    573     return Dictionary.newget("Dates." + day_name) + " " + Dictionary.newget("Dates." + month_name) + " " + day + " " + year + " " + Utility.pad(String.valueOf(hour), 2, '0', true) + ":" + Utility.pad(String.valueOf(minute), 2, '0', true) + ":" + Utility.pad(String.valueOf(second), 2, '0', true);
     573    return Dictionary.get("Dates." + day_name) + " " + Dictionary.get("Dates." + month_name) + " " + day + " " + year + " " + Utility.pad(String.valueOf(hour), 2, '0', true) + ":" + Utility.pad(String.valueOf(minute), 2, '0', true) + ":" + Utility.pad(String.valueOf(second), 2, '0', true);
    574574    }
    575575
     
    594594    ImageIcon image = null;
    595595    try {
    596         image = new ImageIcon(ClassLoader.getSystemResource("images/" + Dictionary.newget("Version") + "/" + filename));
     596        image = new ImageIcon(ClassLoader.getSystemResource("images/" + Dictionary.get("Version") + "/" + filename));
    597597    }
    598598    catch(NullPointerException exception) {
Note: See TracChangeset for help on using the changeset viewer.