Project

General

Profile

« Previous | Next » 

Revision 7bbbad58

Added by Andreas Kohlbecker over 5 years ago

restoring accidentally removed formatter code

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/event/EditorActionContextFormatter.java
13 13

  
14 14
import org.apache.commons.lang3.StringUtils;
15 15

  
16
import com.vaadin.ui.Component;
17

  
16 18
import eu.etaxonomy.cdm.model.common.CdmBase;
17 19
import eu.etaxonomy.cdm.ref.TypedEntityReference;
18 20
import eu.etaxonomy.cdm.vaadin.event.EditorActionContextFormat.TargetInfoType;
......
72 74
                    if (propertyIdPath != null) {
73 75
                        targetInfo = propertyIdPath.toString();
74 76
                    }
77
                } else {
78
                    // TargetInfoType.FIELD_CAPTION
79
                    if(parentCtx.getTargetField() != null){
80
                        Component captionComponent = parentCtx.getTargetField();
81
                        while(captionComponent != null){
82
                            targetInfo = captionComponent.getCaption();
83
                            if(targetInfo != null){
84
                                break;
85
                            }
86
                            captionComponent = captionComponent.getParent();
87
                        }
88
                    }
75 89
                }
76 90
            }
77 91
        }

Also available in: Unified diff