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/feature/AbstractApplicableElement.java
46 46
        comboState = formFactory.createDefinedTermComboElement(Collections.EMPTY_LIST, element, getComboLabel(), null, style);
47 47
        comboState.setEnabled(false);
48 48
        selectFeature.setEnabled(false);
49
        
50
        selectFeature.setEntity(entity.getFeature());
51
        comboState.setSelection(entity.getState());
49 52
    }
50 53

  
51 54
    protected abstract String getComboLabel();
......
53 56
    @Override
54 57
    public void setEntity(FeatureState entity) {
55 58
        this.entity = entity;
56
        selectFeature.setEntity(entity.getFeature());
57
        comboState.setSelection(entity.getState());
59
        if (selectFeature != null){
60
	        selectFeature.setEntity(entity.getFeature());
61
	        comboState.setSelection(entity.getState());
62
        }
58 63
    }
59 64

  
60 65
    @Override

Also available in: Unified diff