Changeset 13595
- Timestamp:
- 2007-01-12T15:36:27+13:00 (17 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/WorkspaceTreeNode.java
r11625 r13595 35 35 import org.greenstone.gatherer.Gatherer; 36 36 import org.greenstone.gatherer.collection.BasicCollectionConfiguration; // !!! Don't like this here 37 import org.greenstone.gatherer.collection.Collection ; // !!! Don't like this here37 import org.greenstone.gatherer.collection.CollectionManager; // !!! Don't like this here 38 38 import org.greenstone.gatherer.util.ArrayTools; 39 39 import org.greenstone.gatherer.util.StaticStrings; … … 153 153 154 154 // One last piece of magic so we can determine the current collection 155 Collection collection = Gatherer.c_man.getCollection(); 156 if (collection != null) { 157 collection_root.is_in_loaded_collection = cols[i].getName().equals(collection.getName()); 158 } 155 collection_root.is_in_loaded_collection = cols[i].getName().equals(CollectionManager.getLoadedCollectionName()); 159 156 child_nodes.add(collection_root); 160 157 } -
trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java
r13582 r13595 162 162 */ 163 163 public CreatePane() { 164 Collection collection = Gatherer.c_man.getCollection();165 164 log_textarea = new JTextArea(); 166 165 log_scroll = new JScrollPane(log_textarea); -
trunk/gli/src/org/greenstone/gatherer/gui/DeleteCollectionPrompt.java
r13586 r13595 294 294 Gatherer.g_man.refreshWorkspaceTree(WorkspaceTree.LIBRARY_CONTENTS_CHANGED); 295 295 296 if ( Gatherer.c_man.getCollection() != null &&collection.getShortName().equals(CollectionManager.getLoadedCollectionName())) {296 if (collection.getShortName().equals(CollectionManager.getLoadedCollectionName())) { 297 297 current_coll_deleted = true; 298 298 } -
trunk/gli/src/org/greenstone/gatherer/gui/PreviewButton.java
r13592 r13595 36 36 import org.greenstone.gatherer.Configuration; 37 37 import org.greenstone.gatherer.Gatherer; 38 import org.greenstone.gatherer.collection.Collection ;38 import org.greenstone.gatherer.collection.CollectionManager; 39 39 import org.greenstone.gatherer.greenstone.LocalLibraryServer; 40 40 import org.greenstone.gatherer.util.StaticStrings; … … 74 74 protected void configureHomeURL() { 75 75 // set up the home page for the current collection 76 Collection current_collection = Gatherer.c_man.getCollection();77 76 if (Gatherer.GS3) { 78 77 // don't do anything fancy here 79 preview_address = Configuration.library_url.toString() + Configuration.getServletPath() + "?a=p&sa=about&c=" + current_collection.getName()+"&l="+Configuration.getLanguage();78 preview_address = Configuration.library_url.toString() + Configuration.getServletPath() + "?a=p&sa=about&c=" + CollectionManager.getLoadedCollectionName() + "&l=" + Configuration.getLanguage(); 80 79 return; 81 80 } 82 preview_address = Configuration.library_url.toString() +"?c="+current_collection.getName()+"&l="+Configuration.getLanguage();81 preview_address = Configuration.library_url.toString() + "?c=" + CollectionManager.getLoadedCollectionName() + "&l=" + Configuration.getLanguage(); 83 82 84 83 String main_args = "&a=p&p=about";
Note:
See TracChangeset
for help on using the changeset viewer.