Project

General

Profile

« Previous | Next » 

Revision 99fab853

Added by Katja Luther almost 4 years ago

ref #8785: add remove filter button and title containing the selected taxa

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/handler/AddDescriptionHandler.java
48 48
        CharacterMatrix matrix = matrixPart.getMatrix();
49 49
        IStructuredSelection selection = matrixPart.getSelection();
50 50
        List<String> treeIndexList = null;
51
        List<String> taxonTitleList = null;
51 52
        if(selection.size()>0){
52 53
            treeIndexList = new ArrayList<>();
54
            taxonTitleList = new ArrayList<>();
53 55
            Iterator iterator = selection.iterator();
54 56
            while (iterator.hasNext()){
55 57
                Object element = iterator.next();
......
57 59
                    TaxonNodeDto taxonRow = (TaxonNodeDto) element;
58 60
                    String treeIndex = taxonRow.getTreeIndex();
59 61
                    treeIndexList.add(treeIndex);
62
                    taxonTitleList.add(taxonRow.getNameCache());
60 63
                }
61 64
            }
62 65

  
63 66
        }
64 67

  
65
        SpecimenSelectionDialog dialog = new SpecimenSelectionDialog(matrix.getShell(), matrix, treeIndexList);
68
        SpecimenSelectionDialog dialog = new SpecimenSelectionDialog(matrix.getShell(), matrix, treeIndexList, taxonTitleList);
66 69
        if(dialog.open()==Window.OK){
67 70
            Collection<SpecimenNodeWrapper> wrappers = dialog.getSpecimen();
68 71
            if(wrappers.stream().anyMatch(wrapper->wrapper.getTaxonDescriptionUuid()==null)

Also available in: Unified diff