Project

General

Profile

« Previous | Next » 

Revision d7ad25d9

Added by Katja Luther over 2 years ago

ref #9838: change order of ui element creation and setting entity in collection elements

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NomenclaturalStatusElement.java
91 91
        spacer.getLayoutComposite().setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
92 92
        addElement(spacer);
93 93
		super.createControls(element, style);
94
		if (entity != null){
95
			setEntity(entity);
96
		}
94 97

  
95 98

  
96 99
	}
......
99 102
	@Override
100 103
	public void setEntity(NomenclaturalStatus entity) {
101 104
		super.setEntity(entity);
102
		if (entity.getType() != null){
103
		    nomenclaturalStatusTypeCombo.setSelection(entity.getType());
104
		    nomenclaturalStatusTypeCombo.removeEmptyElement();
105
		}
106
		if (ruleConsidered != null){
107
		    ruleConsidered.setElement(entity);
105
		if (nomenclaturalStatusTypeCombo != null){
106
			if (entity.getType() != null){
107
			    nomenclaturalStatusTypeCombo.setSelection(entity.getType());
108
			    nomenclaturalStatusTypeCombo.removeEmptyElement();
109
			}
110
			if (ruleConsidered != null){
111
			    ruleConsidered.setElement(entity);
112
			}
108 113
		}
109 114
	}
110 115

  

Also available in: Unified diff