formSection;
+ /**
+ * Initial input
+ */
+ private Object rootInput;
+
/**
*
* Constructor for CdmSectionPart.
@@ -76,6 +81,7 @@ public class CdmSectionPart extends SectionPart implements
/** {@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
@@ -193,7 +199,7 @@ public class CdmSectionPart extends SectionPart implements
@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);
}
}