Changeset 9200 for trunk/gli/src/org/greenstone/gatherer/cdm
- Timestamp:
- 2005-02-25T17:22:07+13:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/IndexManager.java
r9161 r9200 744 744 source_list.clearSelection(); 745 745 ArrayList sources = selected_index.getSources(); 746 source_list.set SelectedObjects(sources.toArray());746 source_list.setTickedObjects(sources.toArray()); 747 747 748 748 } … … 758 758 } 759 759 // Can't add a new index if no sources are selected 760 else if (source_list. getSelected().size() == 0) {760 else if (source_list.isNothingTicked()) { 761 761 add_enabled = false; 762 762 } 763 763 // If we get this far, create a dummy index and see if it's already assigned in the collection 764 764 else { 765 Object object[] = source_list.get Selected().toArray();765 Object object[] = source_list.getTicked().toArray(); 766 766 ArrayList sources = new ArrayList(); 767 767 for(int i = 0; i < object.length; i++) { … … 806 806 { 807 807 String name = name_textfield.getText(); 808 if ( source_list.getSelected().size() > 0&& name.length() != 0) {809 ArrayList sources = source_list.get Selected();808 if (!source_list.isNothingTicked() && name.length() != 0) { 809 ArrayList sources = source_list.getTicked(); 810 810 Index index = new Index(level_combobox.getSelectedIndex(), sources); 811 811 -
trunk/gli/src/org/greenstone/gatherer/cdm/SubcollectionIndexManager.java
r9161 r9200 409 409 410 410 // Display the selected subcollection index's sources 411 source_list.clear Selection();412 source_list.set SelectedObjects(selected_index.getSources().toArray());411 source_list.clearTicked(); 412 source_list.setTickedObjects(selected_index.getSources().toArray()); 413 413 } 414 414 … … 424 424 } 425 425 // Can't add a new index if no sources are selected 426 else if (source_list. getSelected().size() == 0) {426 else if (source_list.isNothingTicked()) { 427 427 add_enabled = false; 428 428 } 429 429 // If we get this far, create a dummy index and see if it's already assigned in the collection 430 430 else { 431 ArrayList sources = source_list.get Selected();431 ArrayList sources = source_list.getTicked(); 432 432 SubcollectionIndex subcollection_index = new SubcollectionIndex(sources.toArray()); 433 433 … … 468 468 { 469 469 String name = subcollection_index_name_textfield.getText(); 470 if ( source_list.getSelected().size() > 0&& name.length() != 0) {471 ArrayList sources = source_list.get Selected();470 if (!source_list.isNothingTicked() && name.length() != 0) { 471 ArrayList sources = source_list.getTicked(); 472 472 SubcollectionIndex subcollection_index = new SubcollectionIndex(sources.toArray()); 473 473
Note:
See TracChangeset
for help on using the changeset viewer.