Project

General

Profile

« Previous | Next » 

Revision 018b80b2

Added by Katja Luther about 5 years ago

ref #7854: improve handling of selection changes in distribution editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/DistributionColumnAccessor.java
99 99
     */
100 100
    @Override
101 101
    public String getColumnProperty(int columnIndex) {
102
        return (String) editor.getPropertyToLabelMap().get(columnIndex);
102
        return editor.getPropertyToLabelMap().get(columnIndex);
103 103
    }
104 104

  
105 105
    /**
......
116 116
     */
117 117
    @Override
118 118
    public void setDataValue(TaxonDistributionDTO taxonWrapper, int columnIndex, Object newValue) {
119
            if (newValue instanceof PresenceAbsenceTerm){
119
           if (newValue instanceof PresenceAbsenceTerm){
120 120
                NamedArea area =editor.getAreaToColumnIndexMap().get(columnIndex);
121 121
                Map<NamedArea, Set<DescriptionElementBase>> distributionMap = editor.taxonDistributionMap.get(taxonWrapper.getTaxonUuid());
122 122
                if (distributionMap == null){
......
156 156

  
157 157
                }
158 158

  
159
                EventUtility.postEvent(WorkbenchEventConstants.REFRESH_DETAILS, true);
160
            }
161 159

  
160
            }
161
            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_DETAILS, true);
162 162
    }
163 163

  
164 164
}

Also available in: Unified diff