Changeset 5222
- Timestamp:
- 2003-08-20T09:29:53+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java
r5220 r5222 711 711 } 712 712 /** Method which acts like a destructor, tidying up references to persistant objects. 713 713 */ 714 714 public void destroy() { 715 715 } … … 879 879 private class MoveListener 880 880 implements ActionListener { 881 882 883 881 /** Any implementation of <i>ActionListener</i> must include this method so that we can be informed when an action has occured on one of our target controls. 882 * @param event An <strong>ActionEvent</strong> containing information garnered from the control action. 883 */ 884 884 public void actionPerformed(ActionEvent event) { 885 if (!plugin_list.isSelectionEmpty()) {885 if (!plugin_list.isSelectionEmpty()) { 886 886 Object object = plugin_list.getSelectedValue(); 887 if (object instanceof PlugIn) {887 if (object instanceof PlugIn) { 888 888 PlugIn plugin = (PlugIn) object; 889 if (event.getSource() == move_top_button) {889 if (event.getSource() == move_top_button) { 890 890 movePlugIn(plugin, true, true); 891 891 } 892 else if (event.getSource() == move_up_button) {892 else if (event.getSource() == move_up_button) { 893 893 movePlugIn(plugin, true, false); 894 894 } 895 else if (event.getSource() == move_down_button) {895 else if (event.getSource() == move_down_button) { 896 896 movePlugIn(plugin, false, false); 897 897 } 898 else {898 else if (event.getSource() == move_bottom_button) { 899 899 movePlugIn(plugin, false, true); 900 900 } … … 905 905 } 906 906 /** This class listens for actions upon the remove button in the controls, and if detected calls the <i>removePlugIn()</i> method. 907 907 */ 908 908 private class RemoveListener 909 909 implements ActionListener {
Note:
See TracChangeset
for help on using the changeset viewer.