- Timestamp:
- 2010-09-27T14:12:13+13:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r22410 r22970 57 57 public class ClassifierManager 58 58 extends DOMProxyListModel { 59 60 private DatabaseTypeManager database_type_manager = null; 61 private String database_type = null; 62 59 63 /** The controls for editing the contents of this manager. */ 60 64 private Control controls = null; … … 71 75 this.model = this; 72 76 DebugStream.println ("ClassifierManager: " + getSize () + " classifiers parsed."); 77 78 database_type_manager = new DatabaseTypeManager(); 79 database_type = database_type_manager.getDatabaseType(); 73 80 74 81 // Force the assigned classifiers to be loaded and cached now … … 269 276 private class ClassifierControl 270 277 extends JPanel 271 implements Control{278 implements Control, DatabaseTypeManager.DatabaseTypeListener { 272 279 /** A combobox containing all of the known classifiers, including those that may have already been assigned. */ 273 280 private JComboBox classifier_combobox = null; … … 281 288 /** Button to remove the selected classifier. */ 282 289 private JButton remove = null; 290 291 private JPanel database_type_panel = (JPanel)database_type_manager.getControls(); 283 292 284 293 /** A list of assigned classifiers. */ … … 404 413 central_pane.setBorder (BorderFactory.createEmptyBorder (5,0,0,0)); 405 414 central_pane.setLayout (new BorderLayout ()); 415 central_pane.add (database_type_panel, BorderLayout.NORTH); 406 416 central_pane.add (classifier_list_pane, BorderLayout.CENTER); 407 417 central_pane.add (temp, BorderLayout.SOUTH); … … 430 440 } 431 441 442 443 public void databaseTypeChanged(String new_database_type) 444 { 445 if(database_type.equals(new_database_type)){ 446 return; 447 } 448 database_type = new_database_type; 449 } 432 450 433 451 private class AddListener
Note:
See TracChangeset
for help on using the changeset viewer.