Changeset 5347 for trunk/gli/src/org/greenstone/gatherer/collection
- Timestamp:
- 2003-08-29T10:52:44+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/collection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r5308 r5347 223 223 try { 224 224 // Create a progress monitor. 225 ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, get("C reating_New"), "mkcol.pl", 0, 7);225 ProgressMonitor progress = new ProgressMonitor(Gatherer.g_man, get("CollectionManager.Creating_New"), "mkcol.pl", 0, 7); 226 226 // Create the new collection. 227 227 makeCollection(description, email, name, title); … … 235 235 gcache_dir.mkdirs(); 236 236 if(progress != null) { 237 progress.setNote(get(" Gcache_Created"));237 progress.setNote(get("CollectionManager.Gcache_Created")); 238 238 } 239 239 … … 243 243 log_dir.mkdirs(); 244 244 if(progress != null) { 245 progress.setNote(get(" Log_Created"));245 progress.setNote(get("CollectionManager.Log_Created")); 246 246 } 247 247 … … 395 395 String args[] = new String[1]; 396 396 args[0] = name; 397 progress.setNote(get(" Session_Ready", args));397 progress.setNote(get("CollectionManager.Session_Ready", args)); 398 398 progress.close(); 399 399 } … … 783 783 collection.gdm = new GDMManager(); 784 784 // Tell everyone that it worked. 785 Gatherer.println(get(" Loading_Successful", name));785 Gatherer.println(get("CollectionManager.Loading_Successful", name)); 786 786 // Now we need to hook up classes that depend on messages from the metadata set manager to keep their content fresh. 787 787 collection.msm.addMSMListener(this); … … 796 796 // There is obviously no existing collection present. 797 797 Gatherer.printStackTrace(error); 798 JOptionPane.showMessageDialog(Gatherer.g_man, get("C annot_Open", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);798 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Cannot_Open", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE); 799 799 } 800 800 } … … 808 808 } 809 809 else { 810 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Not_Col_File", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE);810 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Not_Col_File", args2), get("General.Error"), JOptionPane.ERROR_MESSAGE); 811 811 Gatherer.println("Not a Gatherer Collection."); 812 812 } … … 929 929 workspace_model = null; 930 930 Gatherer.g_man.collectionChanged(ready()); 931 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Preview_Ready"), get("Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE);931 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Preview_Ready"), get("CollectionManager.Preview_Ready_Title"), JOptionPane.INFORMATION_MESSAGE); 932 932 } 933 933 else if(event.getStatus() == GShell.ERROR) { 934 JOptionPane.showMessageDialog(Gatherer.g_man, get(" Preview_Ready_Failed"), get("Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE);934 JOptionPane.showMessageDialog(Gatherer.g_man, get("CollectionManager.Preview_Ready_Failed"), get("CollectionManager.Preview_Ready_Title"), JOptionPane.ERROR_MESSAGE); 935 935 Gatherer.g_man.collectionChanged(ready()); 936 936 } -
trunk/gli/src/org/greenstone/gatherer/collection/DeleteCollectionPrompt.java
r5157 r5347 91 91 super(Gatherer.g_man); 92 92 this.close_button = new JButton(get("General.Close", null)); 93 this.confirmation = new JCheckBox(get(" Confirm_Delete", null));93 this.confirmation = new JCheckBox(get("DeleteCollectionPrompt.Confirm_Delete", null)); 94 94 this.details = new JTextArea(); 95 this.details_label = new JLabel(get(" Collection_Details", null));95 this.details_label = new JLabel(get("DeleteCollectionPrompt.Collection_Details", null)); 96 96 this.list = new JList(); 97 this.list_label = new JLabel(get(" Collection_List", null));97 this.list_label = new JLabel(get("DeleteCollectionPrompt.Collection_List", null)); 98 98 this.list_model = new DefaultListModel(); 99 99 this.ok_button = new JButton(get("General.OK", null)); … … 101 101 this.setModal(true); 102 102 this.setSize(SIZE); 103 this.setTitle(get(" Title", null));103 this.setTitle(get("DeleteCollectionPrompt.Title", null)); 104 104 this.setJMenuBar(new SimpleMenuBar("0")); // need to find an appropriate help page to open at 105 105 close_button.addActionListener(new CloseButtonListener()); … … 108 108 confirmation.setSelected(false); 109 109 details.setFont(Gatherer.config.getFont("general.tooltip_font", false)); 110 details.setText(get(" No_Collection", null));110 details.setText(get("DeleteCollectionPrompt.No_Collection", null)); 111 111 list.addListSelectionListener(new CollectionListListener()); 112 112 list.clearSelection(); … … 184 184 args[0] = collection.getName(); 185 185 if(success) { 186 JOptionPane.showMessageDialog(prompt,get(" Successful_Delete", args),get("Successful_Title", null),JOptionPane.INFORMATION_MESSAGE);186 JOptionPane.showMessageDialog(prompt,get("DeleteCollectionPrompt.Successful_Delete", args),get("DeleteCollectionPrompt.Successful_Title", null),JOptionPane.INFORMATION_MESSAGE); 187 187 } 188 188 else { 189 JOptionPane.showMessageDialog(prompt,get(" Failed_Delete", args),get("Failed_Title", null),JOptionPane.WARNING_MESSAGE);189 JOptionPane.showMessageDialog(prompt,get("DeleteCollectionPrompt.Failed_Delete", args),get("DeleteCollectionPrompt.Failed_Title", null),JOptionPane.WARNING_MESSAGE); 190 190 } 191 191 } … … 264 264 args[3] = collection.getMaintainer(); 265 265 args[4] = collection.getDescription(); 266 details.setText(get("De tails", args));266 details.setText(get("DeleteCollectionPrompt.Details", args)); 267 267 details.setCaretPosition(0); 268 268 } 269 269 else { 270 270 confirmation.setEnabled(false); 271 details.setText(get(" No_Collection", null));271 details.setText(get("DeleteCollectionPrompt.No_Collection", null)); 272 272 } 273 273 } … … 314 314 resultPrompt(true); 315 315 list_model.removeElement(collection); 316 details.setText(get(" No_Collection", null));316 details.setText(get("DeleteCollectionPrompt.No_Collection", null)); 317 317 confirmation.setEnabled(false); 318 318 confirmation.setSelected(false);
Note:
See TracChangeset
for help on using the changeset viewer.