import java.util.Set;
import java.util.stream.Collectors;
+import org.eclipse.swt.graphics.Image;
+
import eu.etaxonomy.cdm.api.service.dto.TaxonRowWrapperDTO;
import eu.etaxonomy.cdm.model.description.DescriptionType;
import eu.etaxonomy.cdm.model.description.DescriptiveDataSet;
import eu.etaxonomy.cdm.model.description.StatisticalMeasure;
import eu.etaxonomy.cdm.model.taxon.Classification;
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
+import eu.etaxonomy.taxeditor.model.ImageResources;
/**
* Utility class for the character matrix editor
}
public static boolean isAggregatedTaxonDescription(TaxonRowWrapperDTO taxonRowWrapperDTO){
- return hasType(taxonRowWrapperDTO, DescriptionType.AGGREGATED);
+ return hasType(taxonRowWrapperDTO, DescriptionType.AGGREGATED_STRUC_DESC);
}
public static boolean isLiteratureTaxonDescription(TaxonRowWrapperDTO taxonRowWrapperDTO){
return taxonRowWrapperDTO.getDescription().getTypes().stream()
.anyMatch(type->type.equals(descriptionType));
}
+
+ public static Image getLiteratureDescriptionIcon() {
+ return ImageResources.getImage(ImageResources.HELP_TOPIC);
+ }
+
+ public static Image getAggregatedDescriptionIcon() {
+ return ImageResources.getImage(ImageResources.FUNNEL_ICON);
+ }
+
+ public static Image getDefaultDescriptionIcon() {
+ return ImageResources.getImage(ImageResources.VALIDATE_ICON);
+ }
}