Revision 15aa0a1c
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/CdmSectionPart.java | ||
---|---|---|
57 | 57 |
|
58 | 58 |
private final AbstractFormSection<T> formSection; |
59 | 59 |
|
60 |
/** |
|
61 |
* Initial input |
|
62 |
*/ |
|
63 |
private Object rootInput; |
|
64 |
|
|
60 | 65 |
/** |
61 | 66 |
* <p> |
62 | 67 |
* Constructor for CdmSectionPart. |
... | ... | |
76 | 81 |
/** {@inheritDoc} */ |
77 | 82 |
@Override |
78 | 83 |
public boolean setFormInput(Object input) { |
84 |
this.rootInput = input; |
|
79 | 85 |
//FIXME (CM): Need to fix this part of the design. |
80 | 86 |
//The design seems to be locked to the idea that only one |
81 | 87 |
// entity (either from the navigator or the editor) drives |
... | ... | |
193 | 199 |
@Override |
194 | 200 |
protected void expansionStateChanged(boolean expanded) { |
195 | 201 |
super.expansionStateChanged(expanded); |
196 |
PreferencesUtil.getPreferenceStore().setValue(StoreUtil.getPrefKey(formSection.getClass(), formSection.getEntity()), expanded);
|
|
202 |
PreferencesUtil.getPreferenceStore().setValue(StoreUtil.getPrefKey(formSection.getClass(), rootInput), expanded);
|
|
197 | 203 |
} |
198 | 204 |
|
199 | 205 |
} |
Also available in: Unified diff
ref #6554 Fix initial expansion state