Changeset 8236 for trunk/gli/src/org/greenstone/gatherer/cdm/PlugIn.java
- 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/PlugIn.java
r7111 r8236 59 59 this.element = element; 60 60 this.name = element.getAttribute(StaticStrings.TYPE_ATTRIBUTE); 61 // Gatherer.println("Establishing Plugin: " + name);61 //DebugStream.println("Establishing Plugin: " + name); 62 62 // Parse in any argument options for this plugin, keeping a list of the ones found 63 63 HashMap known_arguments = new HashMap(); … … 67 67 Element option_element = (Element) option_elements.item(i); 68 68 Argument argument = new Argument(option_element); 69 // Gatherer.println("Rebuilding existing argument: " + argument.getName());69 //DebugStream.println("Rebuilding existing argument: " + argument.getName()); 70 70 known_arguments.put(argument.getName(), argument); 71 71 if (argument.isAssigned() || base_plugin == null) { … … 77 77 // If a base plugin was given 78 78 if(base_plugin != null) { 79 // Gatherer.println("Based on previous plugin.");79 //DebugStream.println("Based on previous plugin."); 80 80 // Copy the details, and add a reference to whatever base_plugins super plugin is. ?? 81 81 description = base_plugin.getDescription(); … … 86 86 Argument base_argument = (Argument) all_arguments.get(j); 87 87 String base_argument_name = base_argument.getName(); 88 // Gatherer.println("Library indicates this plugin should have an argument: " + base_argument_name);88 //DebugStream.println("Library indicates this plugin should have an argument: " + base_argument_name); 89 89 Argument existing_argument = (Argument) known_arguments.get(base_argument_name); 90 90 // Found an existing argument. Complete its details 91 91 if(existing_argument != null) { 92 // Gatherer.println("Found existing argument. Filling out details.");92 //DebugStream.println("Found existing argument. Filling out details."); 93 93 existing_argument.setCustomArgument(false); 94 94 existing_argument.setDefaultValue(base_argument.getDefaultValue()); … … 108 108 // No existing argument. Copy base_argument and add it, but do not set its assigned flag. That should be set the first time its changed by the user. 109 109 else { 110 // Gatherer.println("No such argument. Adding new, unassigned, argument.");110 //DebugStream.println("No such argument. Adding new, unassigned, argument."); 111 111 // The trick thing is that we have to create a new element in the DOM as well. 112 112 Argument new_argument = base_argument.copy();
Note:
See TracChangeset
for help on using the changeset viewer.