Project

General

Profile

« Previous | Next » 

Revision 8f5c5024

Added by Katja Luther over 3 years ago

ref #9116: adapt expand state of additional information of source

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/OriginalSourceElement.java
8 8
*/
9 9
package eu.etaxonomy.taxeditor.ui.section.reference;
10 10

  
11
import org.apache.commons.lang.StringUtils;
11 12
import org.eclipse.jface.util.IPropertyChangeListener;
12 13
import org.eclipse.ui.forms.widgets.TableWrapData;
13 14

  
......
72 73
        addElement(advancedSection);
73 74
        advancedSection.setBackground(this.getPersistentBackground());
74 75
        advancedSection.setEntity(entity);
75
        if (!((DescriptionElementSource)entity).checkEmpty()){
76
        advancedSection.setExpanded(false);
77
        if (StringUtils.isNotBlank(((DescriptionElementSource)entity).getIdInSource()) || StringUtils.isNotBlank(((DescriptionElementSource)entity).getIdNamespace()) || StringUtils.isNotBlank(((DescriptionElementSource)entity).getOriginalNameString()) || (((DescriptionElementSource)entity).getLinks() != null && !((DescriptionElementSource)entity).getLinks().isEmpty())  || (((DescriptionElementSource)entity).getNameUsedInSource() != null)){
76 78
            advancedSection.setExpanded(true);
77
        }else{
78
            advancedSection.setExpanded(false);
79 79
        }
80 80

  
81 81
    }

Also available in: Unified diff