Project

General

Profile

« Previous | Next » 

Revision 9dfd3706

Added by Patrick Plitzner about 7 years ago

fix #3603 Avoid creation of dummy DefinedTerm

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/element/CdmFormFactory.java
2718 2718
            element = new StatisticalMeasureCollectionElement(this, parentElement, (StatisticalMeasure) entity, removeListener, backgroundColor, style);
2719 2719
        }
2720 2720

  
2721
        //check for parent section when entity is null
2722
        //this happens when AbstractUnboundEntityCollectionSection is used
2723
        if(entity==null){
2724
            if(parentElement instanceof ScopeSection || parentElement instanceof ScopeRestrictionSection){
2725
                element = new ScopeElement(this,
2726
                        parentElement,
2727
                        (DefinedTerm) entity,
2728
                        removeListener,
2729
                        style);
2730
            }
2731
            else if(parentElement instanceof ModifierSection){
2732
                element = new ModifierElement(this,
2733
                        parentElement,
2734
                        (DefinedTerm) entity,
2735
                        removeListener,
2736
                        style);
2737
            }
2738
        }
2739

  
2721 2740

  
2722 2741
        if (element == null) {
2723 2742
            MessagingUtils.messageDialog("No element for entity", this,

Also available in: Unified diff