Project

General

Profile

Revision 398b9c0f

ID398b9c0f1ea4695b23910b2c4964d39676cb7cf2
Parent d00e4ab1
Child 87348c2d

Added by Katja Luther about 4 years ago

ref #5837: if nomenclatural titleCache and titleCache are equal only one is shown in selection dialog

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/NomenclaturalReferenceSelectionDialog.java
140 140
			UuidAndTitleCache uuidAndTitleCache = (UuidAndTitleCache) element;
141 141
			String titleCache = uuidAndTitleCache.getTitleCache();
142 142
			String abbrevTitleCache = uuidAndTitleCache.getAbbrevTitleCache();
143
			if (abbrevTitleCache == null){
144
				abbrevTitleCache = "no abbrev title available";
143
			if (!abbrevTitleCache.equals(titleCache)){
144
				abbrevTitleCache += " - " + titleCache;
145 145
			}
146
			abbrevTitleCache += " - " + titleCache;
147 146
			if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_ID_IN_ENTITY_SELECTION_DIAOLOG)){
148 147
				abbrevTitleCache += " ["+uuidAndTitleCache.getId()+"]";
149 148
			}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)