Project

General

Profile

« Previous | Next » 

Revision c919ebc6

Added by Patrick Plitzner over 5 years ago

ref #7674 Add icon to mark descriptions with sources

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixConfigLabelAccumulator.java
43 43
            configLabels.addLabel(CharacterMatrix.LABEL_TAXON_ROW);
44 44
        }
45 45
        else if(rowObject instanceof TaxonRowWrapperDTO){
46
            if(MatrixUtility.isAggregatedTaxonDescription((TaxonRowWrapperDTO) rowObject)){
46
            TaxonRowWrapperDTO taxonRowWrapper = (TaxonRowWrapperDTO) rowObject;
47
            if(MatrixUtility.isAggregatedTaxonDescription(taxonRowWrapper)){
47 48
                configLabels.addLabel(CharacterMatrix.LABEL_TAXON_AGGREGATED_DESCRIPTION);
48 49
                isEditable = false;
49 50
            }
50
            else if(MatrixUtility.isDefaultTaxonDescription((TaxonRowWrapperDTO) rowObject)){
51
            else if(MatrixUtility.isDefaultTaxonDescription(taxonRowWrapper)){
51 52
                configLabels.addLabel(CharacterMatrix.LABEL_TAXON_DEFAULT_DESCRIPTION);
52 53
            }
53
            else if(MatrixUtility.isLiteratureTaxonDescription((TaxonRowWrapperDTO) rowObject)){
54
            else if(MatrixUtility.isLiteratureTaxonDescription(taxonRowWrapper)){
54 55
                configLabels.addLabel(CharacterMatrix.LABEL_TAXON_LITERATURE_DESCRIPTION);
55 56
            }
57
            //check for supplemental data
58
            if(!taxonRowWrapper.getDescription().getSources().isEmpty() && columnPosition==0){
59
                configLabels.addLabel(CharacterMatrix.LABEL_DESCRIPTION_HAS_SUPPLEMENTAL_DATA);
60
            }
56 61
            configLabels.addLabel(CharacterMatrix.LABEL_TAXON_DESCRIPTION);
57 62
        }
58 63

  

Also available in: Unified diff