4 package eu
.etaxonomy
.taxeditor
.ui
.selection
;
6 import eu
.etaxonomy
.cdm
.model
.agent
.TeamOrPersonBase
;
7 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
8 import eu
.etaxonomy
.cdm
.model
.reference
.Reference
;
9 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
10 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
12 public class EntitySelectionElementWithAbbreviatedTitle
<T
extends CdmBase
> extends EntitySelectionElement
<T
> {
17 * @param parentElement
24 public EntitySelectionElementWithAbbreviatedTitle(CdmFormFactory formFactory
,// ConversationHolder conversation,
25 ICdmFormElement parentElement
, Class
<T
> clazz
, String labelString
, T entity
, int mode
, int style
) {
26 super(formFactory
, //conversation,
27 parentElement
, clazz
, labelString
, entity
, mode
, style
);
31 protected String
getTitle() {
33 if(entity
instanceof TeamOrPersonBase
) {
34 return ((TeamOrPersonBase
) entity
).getNomenclaturalTitle();
35 } else if(entity
instanceof Reference
){
36 //FIXME: temporary fix for #6437 to avoid outdated title caches
37 return ((Reference
) entity
).generateAbbrevTitle();
38 // return ((Reference) entity).getAbbrevTitleCache();
40 return super.getTitle();