super.setEntity(entity);
sourceSection.setEntity(entity);
- if (this.entity != null && this.entity.isLectoType()){
+ if (this.entity != null && this.entity.hasDesignationSource()){
if (selection_reference == null){
removeNotDesignatedControls();
selection_reference = formFactory
combo_typeStatus.setSelection(entity.getTypeStatus());
return;
}
- }else if ( entity.getTypeStatus() != null && getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null){
+ }else if ( entity.getTypeStatus() != null && getEntity().getTypeStatus().hasDesignationSource() && !combo_typeStatus.getSelection().hasDesignationSource() && entity.getCitation() != null){
boolean ok = MessagingUtils.confirmDialog(Messages.NameTypeDesignationElement_4, Messages.NameTypeDesignationElement_5);
if (!ok){
combo_typeStatus.setSelection(entity.getTypeStatus());
super.handleEvent(eventSource);
if (eventSource == combo_typeStatus) {
- if ((combo_typeStatus.getSelection() == null && entity.getCitation() != null) || ( entity.getTypeStatus() != null && getEntity().getTypeStatus().isLectotype() && !combo_typeStatus.getSelection().isLectotype() && entity.getCitation() != null)){
+ if ((combo_typeStatus.getSelection() == null && entity.getCitation() != null) || ( entity.getTypeStatus() != null && getEntity().getTypeStatus().hasDesignationSource() && !combo_typeStatus.getSelection().hasDesignationSource() && entity.getCitation() != null)){
boolean ok = MessagingUtils.confirmDialog(Messages.NameTypeDesignationElement_4, Messages.NameTypeDesignationElement_5);
if (!ok){
combo_typeStatus.setSelection(entity.getTypeStatus());