*/
package eu.etaxonomy.taxeditor.ui.section.reference;
+import org.apache.commons.lang.StringUtils;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.ui.forms.widgets.TableWrapData;
addElement(advancedSection);
advancedSection.setBackground(this.getPersistentBackground());
advancedSection.setEntity(entity);
- if (!((DescriptionElementSource)entity).checkEmpty()){
+ advancedSection.setExpanded(false);
+ 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)){
advancedSection.setExpanded(true);
- }else{
- advancedSection.setExpanded(false);
}
}