- Timestamp:
- 2004-10-08T09:46:12+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java
r8231 r8236 38 38 import org.apache.xerces.parsers.*; 39 39 import org.greenstone.gatherer.Configuration; 40 import org.greenstone.gatherer.DebugStream; 40 41 import org.greenstone.gatherer.Dictionary; 41 42 import org.greenstone.gatherer.Gatherer; … … 70 71 public PlugInManager() { 71 72 super(CollectionDesignManager.collect_config.getDocumentElement(), CollectionConfiguration.PLUGIN_ELEMENT, new PlugIn()); 72 Gatherer.println("PlugInManager: " + super.getSize() + " plugins parsed.");73 DebugStream.println("PlugInManager: " + super.getSize() + " plugins parsed."); 73 74 model = this; 74 75 // Reload/Create the library … … 102 103 public static boolean clearPlugInCache() { 103 104 104 Gatherer.println("deleting plugins.dat");105 DebugStream.println("deleting plugins.dat"); 105 106 File plugin_file = new File(Utility.BASE_DIR + "plugins.dat"); 106 107 if (plugin_file.exists()) { … … 175 176 // Can't ever move RecPlug or ArcPlug 176 177 if(super.getSize() < 4) { 177 // Gatherer.println("Not enough plugins to allow moving.");178 //DebugStream.println("Not enough plugins to allow moving."); 178 179 return; 179 180 } … … 290 291 } 291 292 catch (Exception error) { 292 Gatherer.printStackTrace(error);293 DebugStream.printStackTrace(error); 293 294 } 294 295 } … … 335 336 // Now go through the assigned plugins, and remove any that match. 336 337 available.removeAll(children()); 337 // Gatherer.println("There are a total of " + library.size() + " plugins in the library.");338 // Gatherer.println("However " + children().size() + " are in use,");339 // Gatherer.println("So only " + available.size() + " remain.");338 //DebugStream.println("There are a total of " + library.size() + " plugins in the library."); 339 //DebugStream.println("However " + children().size() + " are in use,"); 340 //DebugStream.println("So only " + available.size() + " remain."); 340 341 Collections.sort(available); 341 342 return available.toArray(); … … 429 430 } 430 431 catch (Exception error) { 431 Gatherer.println("Unable to open "+ Utility.BASE_DIR + "plugins.dat");432 DebugStream.println("Unable to open "+ Utility.BASE_DIR + "plugins.dat"); 432 433 } 433 434 … … 910 911 PlugIn new_plugin = null; 911 912 if(base_plugin != null) { 912 // Gatherer.println("New PlugIn based on existing PlugIn");913 //DebugStream.println("New PlugIn based on existing PlugIn"); 913 914 element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, base_plugin.getName()); 914 915 new_plugin = new PlugIn(element, base_plugin); 915 916 } 916 917 else { 917 // Gatherer.println("New Custom PlugIn");918 //DebugStream.println("New Custom PlugIn"); 918 919 element.setAttribute(CollectionConfiguration.TYPE_ATTRIBUTE, selected_object.toString()); 919 920 new_plugin = new PlugIn(element, null);
Note:
See TracChangeset
for help on using the changeset viewer.