Changeset 12635
- Timestamp:
- 2006-08-31T17:03:13+12:00 (18 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Classifier.java
r12631 r12635 61 61 String classifier_name = element.getAttribute(StaticStrings.TYPE_ATTRIBUTE); 62 62 // Determine the base classifier from the classifier name 63 Classifier base_classifier = C ollectionDesignManager.classifier_manager.getClassifier(classifier_name, true);63 Classifier base_classifier = ClassifierManager.getClassifier(classifier_name, true); 64 64 Classifier classifier = new Classifier(element, base_classifier); 65 65 if (base_classifier == null) { -
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r12634 r12635 60 60 { 61 61 // A list of all the classifiers in the core Greenstone "perllib/classify" folder (arguments may not be loaded) 62 private ArrayList core_greenstone_classifiers_list = null;62 static private ArrayList core_greenstone_classifiers_list = null; 63 63 64 64 /** The controls for editing the contents of this manager. */ … … 77 77 78 78 core_greenstone_classifiers_list = loadClassifiersList(); 79 80 // Force the assigned classifiers to be loaded and cached now 81 for (int i = 0; i < getSize(); i++) { 82 getElementAt(i); 83 } 79 84 } 80 85 … … 103 108 104 109 105 public Classifier getClassifier(String classifier_name, boolean arguments_required)110 static public Classifier getClassifier(String classifier_name, boolean arguments_required) 106 111 { 107 112 for (int i = 0; i < core_greenstone_classifiers_list.size(); i++) { … … 124 129 125 130 126 private void loadClassifierInfo(Classifier classifier)131 static private void loadClassifierInfo(Classifier classifier) 127 132 { 128 133 System.err.println("Loading arguments for " + classifier.getName() + "..."); … … 209 214 210 215 211 private void parseClassifierInfoXML(Classifier classifier, String xml)216 static private void parseClassifierInfoXML(Classifier classifier, String xml) 212 217 { 213 218 Document document = XMLTools.parseXML(new StringReader(xml)); … … 216 221 217 222 218 private void parseClassifierInfoXMLNode(Classifier classifier, Node root_node)223 static private void parseClassifierInfoXMLNode(Classifier classifier, Node root_node) 219 224 { 220 225 for (Node node = root_node.getFirstChild(); node != null; node = node.getNextSibling()) { -
trunk/gli/src/org/greenstone/gatherer/cdm/Plugin.java
r12631 r12635 71 71 String plugin_name = element.getAttribute(StaticStrings.TYPE_ATTRIBUTE); 72 72 // Determine the base plugin from the plugin name 73 Plugin base_plugin = CollectionDesignManager.plugin_manager.getPlugin(plugin_name, true);73 Plugin base_plugin = PluginManager.getPlugin(plugin_name, true); 74 74 Plugin plugin = new Plugin(element, base_plugin); 75 75 if (base_plugin == null) { -
trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java
r12634 r12635 63 63 { 64 64 // A list of all the plugins in the core Greenstone "perllib/plugins" folder (arguments may not be loaded) 65 private ArrayList core_greenstone_plugins_list = null;65 static private ArrayList core_greenstone_plugins_list = null; 66 66 67 67 /** When asking how many rows are in the model, and if this variables value is true, then this modifier alters the number returned. This funtionality is used to hide the last three rows of the list in low detail modes. */ … … 81 81 core_greenstone_plugins_list = loadPluginsList(); 82 82 83 // Force the assigned plugins to be loaded and cached now 84 for (int i = 0; i < getSize(); i++) { 85 getElementAt(i); 86 } 87 83 88 // Create the separator, cause we can reuse it. 84 89 separator = getSeparator(); … … 134 139 135 140 136 public Plugin getPlugin(String plugin_name, boolean arguments_required)141 static public Plugin getPlugin(String plugin_name, boolean arguments_required) 137 142 { 138 143 for (int i = 0; i < core_greenstone_plugins_list.size(); i++) { … … 168 173 169 174 170 private void loadPluginInfo(Plugin plugin)175 static private void loadPluginInfo(Plugin plugin) 171 176 { 172 177 System.err.println("Loading arguments for " + plugin.getName() + "..."); … … 254 259 255 260 256 private void parsePluginInfoXML(Plugin plugin, String xml)261 static private void parsePluginInfoXML(Plugin plugin, String xml) 257 262 { 258 263 Document document = XMLTools.parseXML(new StringReader(xml)); … … 261 266 262 267 263 private void parsePluginInfoXMLNode(Plugin plugin, Node root_node)268 static private void parsePluginInfoXMLNode(Plugin plugin, Node root_node) 264 269 { 265 270 for (Node node = root_node.getFirstChild(); node != null; node = node.getNextSibling()) {
Note:
See TracChangeset
for help on using the changeset viewer.