Project

General

Profile

Revision 0747234f

ID0747234f9fdd2e61e5b4809f0169b87bb081964e
Parent 2e385b93
Child e4f5a8e2

Added by Katja Luther almost 3 years ago

ref #7854: continue session handling in distribution editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionColumnAccessor.java
57 57
        NamedArea area = editor.getAreaToColumnIndexMap().get(columnIndex);
58 58

  
59 59
        //TODO: do not get the distribution objcts, but the label of the status.
60
        Set<DescriptionElementBase> distributionsForArea = editor.taxonDistributionMap.get(rowObject.getTaxonUuid()).get(area);
61
        if (distributionsForArea == null){
62
            return null;
63
        }
64
        if (distributionsForArea.size() == 1){
65
            return distributionsForArea.iterator().next();
66
        }
67
        if (distributionsForArea.size() > 1){
68
            return distributionsForArea;
60
        Map<NamedArea, Set<DescriptionElementBase>> distributionMap = editor.taxonDistributionMap.get(rowObject.getTaxonUuid());
61
        if (distributionMap != null){
62
            Set<DescriptionElementBase> distributionsForArea = editor.taxonDistributionMap.get(rowObject.getTaxonUuid()).get(area);
63
            if (distributionsForArea == null){
64
                return null;
65
            }
66
            if (distributionsForArea.size() == 1){
67
                return distributionsForArea.iterator().next();
68
            }
69
            if (distributionsForArea.size() > 1){
70
                return distributionsForArea;
71
            }
69 72
        }
70 73
        return null;
71 74

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)