Project

General

Profile

« Previous | Next » 

Revision b4ca72fe

Added by Cherian Mathew about 11 years ago

SearchResultLabelProvider : display new orphaned-taxa image icon for orphaned taxa
AbstractGroupedContainer : updated 'isNameUsedMultipleTimes' to factor in orphaned taxa
TaxonEditorInput : added display of message in case of orphaned taxa
ImageResources : added new orphaned-taxa image icon to resources

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/search/SearchResultLabelProvider.java
16 16
import org.eclipse.swt.graphics.Font;
17 17
import org.eclipse.swt.graphics.Image;
18 18

  
19
import eu.etaxonomy.cdm.api.service.ITaxonService;
19 20
import eu.etaxonomy.cdm.model.common.UuidAndTitleCache;
20 21
import eu.etaxonomy.cdm.model.taxon.Synonym;
21 22
import eu.etaxonomy.cdm.model.taxon.Taxon;
......
23 24
import eu.etaxonomy.taxeditor.model.ImageResources;
24 25
import eu.etaxonomy.taxeditor.navigation.NavigationUtil;
25 26
import eu.etaxonomy.taxeditor.preference.Resources;
27
import eu.etaxonomy.taxeditor.store.CdmStore;
26 28

  
27 29
/**
28 30
 * <p>SearchResultLabelProvider class.</p>
......
95 97
//				return ImageResources.getImage(ImageResources.MISAPPLIED_NAME_ICON);
96 98
//			}else{
97 99
			if(type == Taxon.class){
100
				if(((UuidAndTitleCache) element).getIsOrphaned()) {
101
					return ImageResources.getImage(ImageResources.ORPHANED_TAXON);
102
				}
98 103
				return ImageResources.getImage(ImageResources.BLACK_SQUARE_ICON);
99 104
			}else if(type == Synonym.class){
100 105
				return ImageResources.getImage(ImageResources.HETEROTYPIC_SYN_ICON);

Also available in: Unified diff