Changeset 13584
- Timestamp:
- 2007-01-12T13:21:37+13:00 (17 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/collection/CollectionManager.java
r13529 r13584 533 533 public boolean deleteCollection(String collection_name) 534 534 { 535 // First we must release the collection from the local library, if it's running 536 if (LocalLibraryServer.isRunning() == true) { 537 LocalLibraryServer.releaseCollection(collection_name); 538 } 539 540 // Delete the collection on the server if we're using a remote Greenstone 541 if (Gatherer.isGsdlRemote) { 542 RemoteGreenstoneServer.deleteCollection(collection_name); 543 } 544 545 // Now delete the collection directory 535 546 return Utility.delete(new File(getCollectionDirectoryPath(collection_name))); 536 547 } -
trunk/gli/src/org/greenstone/gatherer/gui/DeleteCollectionPrompt.java
r12730 r13584 47 47 import org.greenstone.gatherer.Dictionary; 48 48 import org.greenstone.gatherer.Gatherer; 49 import org.greenstone.gatherer.LocalLibraryServer;50 49 import org.greenstone.gatherer.collection.BasicCollectionConfiguration; 51 50 import org.greenstone.gatherer.file.WorkspaceTree; // !!! Don't like this here 52 import org.greenstone.gatherer.remote.RemoteGreenstoneServer;53 51 import org.greenstone.gatherer.util.ArrayTools; 54 52 import org.greenstone.gatherer.util.StaticStrings; … … 288 286 * @see org.greenstone.gatherer.util.Utility 289 287 */ 290 public void actionPerformed(ActionEvent event) { 288 public void actionPerformed(ActionEvent event) 289 { 291 290 // Delete the selected collection. 292 // !! This should all go into CollectionManager !!293 294 // First we must release it from the local library295 if (LocalLibraryServer.isRunning() == true) {296 LocalLibraryServer.releaseCollection(collection.getShortName());297 }298 299 if (Gatherer.isGsdlRemote) {300 RemoteGreenstoneServer.deleteCollection(collection.getShortName());301 }302 303 291 if (Gatherer.c_man.deleteCollection(collection.getShortName())) { 304 292 // Refresh the collections shown in the workspace tree
Note:
See TracChangeset
for help on using the changeset viewer.