Ignore:
Timestamp:
2006-08-31T17:03:13+12:00 (18 years ago)
Author:
mdewsnip
Message:

Made some of the new plugins/classifiers code static in preparation for possibly moving it into new classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r12634 r12635  
    6363{
    6464    // 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;
    6666
    6767    /** 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. */
     
    8181    core_greenstone_plugins_list = loadPluginsList();
    8282
     83    // Force the assigned plugins to be loaded and cached now
     84    for (int i = 0; i < getSize(); i++) {
     85        getElementAt(i);
     86    }
     87
    8388    // Create the separator, cause we can reuse it.
    8489    separator = getSeparator();
     
    134139
    135140
    136     public Plugin getPlugin(String plugin_name, boolean arguments_required)
     141    static public Plugin getPlugin(String plugin_name, boolean arguments_required)
    137142    {
    138143    for (int i = 0; i < core_greenstone_plugins_list.size(); i++) {
     
    168173
    169174
    170     private void loadPluginInfo(Plugin plugin)
     175    static private void loadPluginInfo(Plugin plugin)
    171176    {
    172177    System.err.println("Loading arguments for " + plugin.getName() + "...");
     
    254259
    255260
    256     private void parsePluginInfoXML(Plugin plugin, String xml)
     261    static private void parsePluginInfoXML(Plugin plugin, String xml)
    257262    {
    258263    Document document = XMLTools.parseXML(new StringReader(xml));
     
    261266
    262267
    263     private void parsePluginInfoXMLNode(Plugin plugin, Node root_node)
     268    static private void parsePluginInfoXMLNode(Plugin plugin, Node root_node)
    264269    {
    265270    for (Node node = root_node.getFirstChild(); node != null; node = node.getNextSibling()) {
Note: See TracChangeset for help on using the changeset viewer.