Changeset 13244


Ignore:
Timestamp:
2006-11-13T16:49:41+13:00 (17 years ago)
Author:
shaoqun
Message:

updates the plugin list when mode changes

File:
1 edited

Legend:

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

    r13195 r13244  
    105105    }
    106106    }
     107
     108
    107109    /** Retrieve a list of the plugins that are available to be added to the collection. */
    108110    private Object[] getAvailablePlugins()
     
    126128        available.removeAll(children());
    127129    }
    128 
     130       
    129131    // Sort the available plugins into alphabetical order
    130132    Collections.sort(available);
     
    552554        plugin_list.clearSelection();
    553555        // The first change is dependant on whether the user is systems mode or higher
     556     
     557        plugin_combobox.setModel(new DefaultComboBoxModel(getAvailablePlugins()));
     558     
    554559        if(mode >= Configuration.SYSTEMS_MODE) {
    555560        // Show movement buttons
     561             
    556562        plugin_list_pane.add(movement_pane, BorderLayout.EAST);
    557563        // Do we show Arc and RecPlugs or hide them and the separator line
Note: See TracChangeset for help on using the changeset viewer.