Changeset 4476


Ignore:
Timestamp:
2003-06-04T13:10:18+12:00 (21 years ago)
Author:
kjdon
Message:

enabled removal of multiple plugins at once from the users plugin list

File:
1 edited

Legend:

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

    r4366 r4476  
    955955        public void actionPerformed(ActionEvent event) {
    956956        if(!plugin_list.isSelectionEmpty()) {
    957             Object object = plugin_list.getSelectedValue();
    958             if(object instanceof PlugIn) {
    959             removePlugIn((PlugIn)object);
    960             }
     957            Object [] objects = plugin_list.getSelectedValues();
     958            for(int i = 0; i < objects.length; i++) {
     959            if(objects[i] instanceof PlugIn) {
     960                removePlugIn((PlugIn)objects[i]);
     961            }
     962            }
     963            //Object object = plugin_list.getSelectedValue();
     964            //if(object instanceof PlugIn) {
     965            //removePlugIn((PlugIn)object);
     966            //}
    961967        }
    962968        }
Note: See TracChangeset for help on using the changeset viewer.