Revision 2f45fa53
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixConfigLabelAccumulator.java | ||
---|---|---|
118 | 118 |
configLabels.addLabel(DEFAULT_OVERRIDDEN); |
119 | 119 |
} |
120 | 120 |
} |
121 |
if (hasMoreThanOneValue(feature, specimenRowWrapper)){ |
|
122 |
isEditable = false; |
|
123 |
} |
|
121 |
|
|
122 |
} |
|
123 |
if (rowObject instanceof RowWrapperDTO){ |
|
124 |
if (hasMoreThanOneValue(feature, (RowWrapperDTO)rowObject)){ |
|
125 |
isEditable = false; |
|
126 |
} |
|
124 | 127 |
} |
125 | 128 |
|
126 | 129 |
if(feature.isSupportsCategoricalData()){ |
... | ... | |
178 | 181 |
return false; |
179 | 182 |
} |
180 | 183 |
private boolean hasMoreThanOneValue(FeatureDto feature, RowWrapperDTO<?> rowWrapperDTO) { |
181 |
if(rowWrapperDTO instanceof SpecimenRowWrapperDTO){ |
|
182 |
Set<DescriptionElementDto> elements = ((SpecimenRowWrapperDTO)rowWrapperDTO).getDataValueForFeature(feature.getUuid());
|
|
184 |
|
|
185 |
Set<DescriptionElementDto> elements = rowWrapperDTO.getDataValueForFeature(feature.getUuid());
|
|
183 | 186 |
return elements != null && elements.size()>1; |
184 |
} |
|
185 | 187 |
|
186 |
return false; |
|
188 |
|
|
187 | 189 |
} |
188 | 190 |
|
189 | 191 |
|
Also available in: Unified diff
ref #9816: tooltip and disabled field for taxon descriptions also