Revision 6a8d9d7f
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/SpecimenColumnPropertyAccessor.java | ||
---|---|---|
56 | 56 |
break; |
57 | 57 |
} |
58 | 58 |
Feature feature = matrix.getIndexToFeatureMap().get(columnIndex); |
59 |
Set<DescriptionElementBase> elements = rowWrapper.getSpecimenDescription().getElements(); |
|
60 |
for (DescriptionElementBase descriptionElementBase : elements) { |
|
61 |
if(descriptionElementBase.getFeature().equals(feature)){ |
|
62 |
return descriptionElementBase; |
|
63 |
} |
|
64 |
} |
|
59 |
return rowWrapper.getDescriptionElementForFeature(feature); |
|
65 | 60 |
} else if (columnIndex == 0) { |
66 | 61 |
return rowObject; |
67 | 62 |
} |
Also available in: Unified diff
ref #7095 Cache description elements in row wrapper for performance