Changeset 5593 for trunk/gli/src/org/greenstone/gatherer/collection
- Timestamp:
- 2003-10-07T15:35:23+13:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/collection
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r5590 r5593 229 229 try { 230 230 // 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); 232 232 // Create the new collection. 233 233 makeCollection(description, email, name, title); … … 241 241 gcache_dir.mkdirs(); 242 242 if(progress != null) { 243 progress.setNote(Dictionary. newget("CollectionManager.Gcache_Created"));243 progress.setNote(Dictionary.get("CollectionManager.Gcache_Created")); 244 244 } 245 245 … … 249 249 log_dir.mkdirs(); 250 250 if(progress != null) { 251 progress.setNote(Dictionary. newget("CollectionManager.Log_Created"));251 progress.setNote(Dictionary.get("CollectionManager.Log_Created")); 252 252 } 253 253 … … 401 401 String args[] = new String[1]; 402 402 args[0] = name; 403 progress.setNote(Dictionary. newget("CollectionManager.Session_Ready", args));403 progress.setNote(Dictionary.get("CollectionManager.Session_Ready", args)); 404 404 progress.close(); 405 405 } … … 584 584 return collection.getTitle(); 585 585 } 586 return Dictionary. newget("Collection.No_Collection");586 return Dictionary.get("Collection.No_Collection"); 587 587 } 588 588 … … 616 616 // Create and add Greenstone collections node. 617 617 // 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")); 619 619 world_root.unmap(); 620 620 workspace_root.insert(world_root); … … 625 625 if(roots != null) { 626 626 FileNode file_root; 627 String name = Dictionary. newget("Tree.Root");627 String name = Dictionary.get("Tree.Root"); 628 628 if(roots.length == 1) { 629 629 file_root = new FileNode(roots[0], name); … … 652 652 String[] args = new String[1]; 653 653 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)); 655 655 workspace_root.insert(home_folder_node); 656 656 } … … 659 659 if(Gatherer.config.get("workflow.mirror", false)) { 660 660 // 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")); 662 662 workspace_root.insert(public_root); 663 663 // Add Private workspace if a collection has been loaded. 664 664 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")); 666 666 workspace_root.insert(private_root); 667 667 } … … 761 761 File metadata_directory = new File(collection_directory, Utility.META_DIR); 762 762 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); 764 764 } 765 765 // Normal GLI collection … … 793 793 String[] args = new String[1]; 794 794 args[0] = name; 795 Gatherer.println(Dictionary. newget("CollectionManager.Loading_Successful", args));795 Gatherer.println(Dictionary.get("CollectionManager.Loading_Successful", args)); 796 796 // Now we need to hook up classes that depend on messages from the metadata set manager to keep their content fresh. 797 797 collection.msm.addMSMListener(this); … … 806 806 // There is obviously no existing collection present. 807 807 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); 809 809 } 810 810 } … … 813 813 } 814 814 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); 816 816 } 817 817 collection_directory = null; 818 818 } 819 819 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); 821 821 Gatherer.println("Not a Gatherer Collection."); 822 822 } … … 939 939 workspace_model = null; 940 940 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); 942 942 } 943 943 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); 945 945 Gatherer.g_man.collectionChanged(ready()); 946 946 } … … 986 986 FileNode greenstone_collections_node = null; 987 987 int root_child_count = root.getChildCount(); 988 String greenstone_collections_str = Dictionary. newget("Tree.World");988 String greenstone_collections_str = Dictionary.get("Tree.World"); 989 989 for(int i = 0; greenstone_collections_node == null && i < root_child_count; i++) { 990 990 TreeNode child = root.getChildAt(i); … … 1106 1106 model.removeNodeFromParent(old); 1107 1107 // 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")); 1109 1109 model.insertNodeInto(private_workspace, root, 2); 1110 1110 } … … 1144 1144 1145 1145 // 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"))) { 1147 1147 // Remove the old index directory 1148 1148 if (index_dir.exists()) { -
trunk/gli/src/org/greenstone/gatherer/collection/DeleteCollectionPrompt.java
r5581 r5593 199 199 args[0] = collection.getName(); 200 200 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); 202 202 } 203 203 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); 205 205 } 206 206 } -
trunk/gli/src/org/greenstone/gatherer/collection/Job.java
r5581 r5593 220 220 int count = 0; 221 221 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"); 223 223 count++; 224 224 } -
trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionTask.java
r5564 r5593 110 110 // Create progress monitor box. It will display itself as necessary. 111 111 // 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); 113 113 // spd.setMillisToDecideToPopup(100); 114 114 // spd.setMillisToPopup(100);
Note:
See TracChangeset
for help on using the changeset viewer.