Changeset 5593 for trunk/gli/src/org/greenstone/gatherer/msm
- Timestamp:
- 2003-10-07T15:35:23+13:00 (21 years ago)
- 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 221 221 JFileChooser chooser = new JFileChooser(new File(Utility.METADATA_DIR)); 222 222 javax.swing.filechooser.FileFilter filter = new MDSFileFilter(); 223 chooser.setApproveButtonText(Dictionary. newget("General.OK"));223 chooser.setApproveButtonText(Dictionary.get("General.OK")); 224 224 chooser.setFileFilter(filter); 225 225 int returnVal = chooser.showSaveDialog(Gatherer.g_man); -
trunk/gli/src/org/greenstone/gatherer/msm/GreenstoneArchiveParser.java
r5589 r5593 82 82 args[0] = document_directories[i].getName(); 83 83 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); 85 85 args = null; 86 86 progress.increment(); -
trunk/gli/src/org/greenstone/gatherer/msm/MDSFileFilter.java
r5564 r5593 51 51 */ 52 52 public MDSFileFilter() { 53 description = Dictionary. newget("MSMPrompt.File_Filter_Description");53 description = Dictionary.get("MSMPrompt.File_Filter_Description"); 54 54 } 55 55 -
trunk/gli/src/org/greenstone/gatherer/msm/MSMPrompt.java
r5589 r5593 109 109 String args[] = new String[2]; 110 110 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); 113 113 } 114 114 … … 215 215 JPanel current_pane = new JPanel(); 216 216 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"))); 218 218 JScrollPane scroll = new JScrollPane(cur_values); 219 219 current_pane.add(scroll, BorderLayout.CENTER); 220 220 221 221 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"))); 223 223 new_pane.setLayout(new BorderLayout()); 224 224 JLabel new_att = new JLabel(MSMUtils.getValue(att_new)); … … 349 349 String opt_cur[] = MSMUtils.getOptionListDetails(mde_cur); 350 350 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); 352 352 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); 354 354 } 355 355 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); 357 357 } 358 358 current_details.setText(details_cur); … … 376 376 String opt_new[] = MSMUtils.getOptionListDetails(mde_new); 377 377 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); 379 379 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); 381 381 } 382 382 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); 384 384 } 385 385 new_details.setText(details_new); … … 564 564 String args[] = new String[2]; 565 565 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); 568 568 } 569 569 … … 577 577 args[0] = mde_new.getAttribute("name"); 578 578 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); 581 581 } 582 582 … … 883 883 JComboBox set = new JComboBox(); 884 884 set.setBackground(Color.white); 885 set.addItem(Dictionary. newget("MSMPrompt.Select_Set_None"));885 set.addItem(Dictionary.get("MSMPrompt.Select_Set_None")); 886 886 Vector sets = manager.getSets(); 887 887 for(int i = sets.size() - 1; i >= 0; i--) { -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSet.java
r5589 r5593 341 341 // Failing all that set an error message 342 342 if(description == null) { 343 description = Dictionary. newget("MSM.No_Description");343 description = Dictionary.get("MSM.No_Description"); 344 344 } 345 345 } … … 448 448 // Failing all that set an error message 449 449 if(name == null) { 450 name = Dictionary. newget("MSM.No_Name");450 name = Dictionary.get("MSM.No_Name"); 451 451 } 452 452 } -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java
r5589 r5593 548 548 javax.swing.filechooser.FileFilter filter = new MDSFileFilter(); 549 549 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")); 551 551 if(returnVal == JFileChooser.APPROVE_OPTION) { 552 552 return importMDS(chooser.getSelectedFile(), true);
Note:
See TracChangeset
for help on using the changeset viewer.