- Timestamp:
- 2004-11-09T13:54:52+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java
r8381 r8496 576 576 JLabel source_label = new JLabel(); 577 577 Dictionary.registerText(source_label, "CDM.IndexManager.Source"); 578 source_list = new CheckList(new_data, false); 578 source_list = new CheckList(false); 579 source_list.setListData(new_data); 579 580 Dictionary.registerTooltip(source_list, "CDM.IndexManager.Source_Tooltip"); 580 581 … … 696 697 new_data.addAll(MetadataSetManager.getEveryMetadataSetElement()); 697 698 // reset the model in the list and combobox 698 source_list.setListData(new_data .toArray());699 source_list.setListData(new_data); 699 700 new_data = null; 700 701 // refresh the indexList … … 742 743 } 743 744 // Can't add a new index if no sources are selected 744 else if (source_list.isSelectionEmpty()) {745 else if (source_list.getSelected().size() == 0) { 745 746 add_enabled = false; 746 747 } … … 795 796 public void actionPerformed(ActionEvent event) { 796 797 String name = name_textfield.getText(); 797 if (!source_list.isSelectionEmpty()&& name.length() != 0) {798 if (source_list.getSelected().size() > 0 && name.length() != 0) { 798 799 ArrayList sources = source_list.getSelected(); 799 800 Index index = new Index(level_combobox.getSelectedIndex(), sources);
Note:
See TracChangeset
for help on using the changeset viewer.