Changeset 5804
- Timestamp:
- 2003-11-07T13:16:14+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java
r5753 r5804 50 50 import org.w3c.dom.*; 51 51 import org.xml.sax.*; 52 /** This class is resposiblefor maintaining a list of known plug-ins, and importing new plugins using the parser. */53 public class PlugInManager 52 /** This class is for maintaining a list of known plug-ins, and importing new plugins using the parser. */ 53 public class PlugInManager 54 54 extends DOMProxyListModel { 55 55 /** The library 'reserve' of base plugins. */ … … 59 59 private DOMProxyListModel model; 60 60 private JPanel separator; 61 private PlugIn separator_plugin; 61 private PlugIn separator_plugin; 62 62 /** The default size for a label. */ 63 63 static final private Dimension LABEL_SIZE = new Dimension(125, 25); … … 170 170 // Add the moving plugin before the separator 171 171 addBefore(plugin, separator_plugin); 172 Gatherer.c_man.configurationChanged(); 172 Gatherer.c_man.configurationChanged(); 173 173 } 174 174 // Otherwise we aren't moving anywhere! … … 190 190 remove(plugin); 191 191 add(index, plugin); 192 Gatherer.c_man.configurationChanged(); 192 Gatherer.c_man.configurationChanged(); 193 193 } 194 194 else { … … 428 428 PlugIn plugin = new PlugIn(); 429 429 String node_name = null; 430 for(Node node = root.getFirstChild(); node != null; 430 for(Node node = root.getFirstChild(); node != null; 431 431 node = node.getNextSibling()) { 432 432 node_name = node.getNodeName(); … … 505 505 } 506 506 } 507 } 507 } 508 508 if(plugin.getName() != null) { 509 509 addPlugIn(plugin); … … 515 515 /** A class which provodes controls for assigned and editing plugins. */ 516 516 private class PlugInControl 517 extends JPanel 517 extends JPanel 518 518 implements Control { 519 519 /** Button for adding plugins. */ … … 781 781 private class ClickListener 782 782 extends MouseAdapter { 783 /** Called whenever the mouse is clicked over a registered component, we use this to chain through to the configure prompt. 783 /** Called whenever the mouse is clicked over a registered component, we use this to chain through to the configure prompt. 784 784 * @param event A <strong>MouseEvent</strong> containing information about the mouse click. 785 785 */ … … 829 829 830 830 public void valueChanged(ListSelectionEvent e) { 831 if (!e.getValueIsAdjusting()) { // we get two events for one change in list selection - use the false one (the second one) 831 if (!e.getValueIsAdjusting()) { // we get two events for one change in list selection - use the false one (the second one) 832 832 if (plugin_list.isSelectionEmpty()) { 833 833 move_top_button.setEnabled(false);
Note:
See TracChangeset
for help on using the changeset viewer.