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/msm
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • 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);
Note: See TracChangeset for help on using the changeset viewer.