- Timestamp:
- 2006-08-31T17:03:13+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.