Project

General

Profile

« Previous | Next » 

Revision 8f555f2f

Added by Patrick Plitzner almost 5 years ago

Fix expansion state preference for details and suppData view

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/CdmSectionPart.java
55 55
public class CdmSectionPart<T> extends SectionPart implements
56 56
		IPropertyChangeListener {
57 57

  
58
    public static String EXPANDED = "expanded";
59
    public static String COLLAPSED = "collapsed";
60

  
58 61
	private final AbstractFormSection<T> formSection;
59 62

  
60 63
	/**
......
199 202
	@Override
200 203
	protected void expansionStateChanged(boolean expanded) {
201 204
	    super.expansionStateChanged(expanded);
202
	    PreferencesUtil.setBooleanValue(StoreUtil.getPrefKey(formSection.getClass(), rootInput), expanded);
205
	    PreferencesUtil.setStringValue(StoreUtil.getPrefKey(formSection.getClass(), rootInput), expanded?EXPANDED:COLLAPSED);
203 206
	}
204 207

  
205 208
}

Also available in: Unified diff