Revision 4eb4e01e
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailSection.java | ||
---|---|---|
126 | 126 |
public void setEntity(ENTITY entity) { |
127 | 127 |
if (detailElement != null) { |
128 | 128 |
detailElement.setEntity(entity); |
129 |
detailElement.setEnabled(getEnabled()); |
|
129 |
Collection<Object> except = new ArrayList<Object>(); |
|
130 |
for(ICdmFormElement formElement:detailElement.getElements()){ |
|
131 |
if(formElement instanceof IEnableableFormElement && !((IEnableableFormElement) formElement).isEnabled()){ |
|
132 |
except.add(formElement); |
|
133 |
} |
|
134 |
} |
|
135 |
detailElement.setEnabled(isEnabled(), except); |
|
130 | 136 |
} |
131 | 137 |
super.setEntity(entity); |
132 | 138 |
setSectionTitle(); |
Also available in: Unified diff
ref #6746 Fix detail element enabling