private final AbstractFormSection<T> formSection;
+ /**
+ * Initial input
+ */
+ private Object rootInput;
+
/**
* <p>
* Constructor for CdmSectionPart.
/** {@inheritDoc} */
@Override
public boolean setFormInput(Object input) {
+ this.rootInput = input;
//FIXME (CM): Need to fix this part of the design.
//The design seems to be locked to the idea that only one
// entity (either from the navigator or the editor) drives
@Override
protected void expansionStateChanged(boolean expanded) {
super.expansionStateChanged(expanded);
- PreferencesUtil.getPreferenceStore().setValue(StoreUtil.getPrefKey(formSection.getClass(), formSection.getEntity()), expanded);
+ PreferencesUtil.getPreferenceStore().setValue(StoreUtil.getPrefKey(formSection.getClass(), rootInput), expanded);
}
}