Project

General

Profile

« Previous | Next » 

Revision 398b9c0f

Added by Katja Luther over 7 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