Revision ed60b90e
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/CdmSectionPart.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package eu.etaxonomy.taxeditor.view.detail; |
11 | 11 |
|
12 |
import java.awt.Event; |
|
13 | 12 |
import java.util.EventObject; |
14 | 13 |
|
15 | 14 |
import org.eclipse.jface.util.IPropertyChangeListener; |
... | ... | |
27 | 26 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
28 | 27 |
import eu.etaxonomy.taxeditor.model.PolytomousKeyRelationship; |
29 | 28 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
29 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
30 | 30 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
31 | 31 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
32 | 32 |
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection; |
33 | 33 |
import eu.etaxonomy.taxeditor.ui.section.key.PolytomousKeyDetailSection; |
34 | 34 |
import eu.etaxonomy.taxeditor.ui.section.key.ScopeRestrictionSection; |
35 | 35 |
import eu.etaxonomy.taxeditor.ui.section.key.TaxonomicScopeSection; |
36 |
import eu.etaxonomy.taxeditor.ui.section.name.NameDetailSection; |
|
37 | 36 |
import eu.etaxonomy.taxeditor.ui.section.name.NameRelationshipDetailSection; |
38 | 37 |
import eu.etaxonomy.taxeditor.ui.section.name.NomenclaturalStatusSection; |
39 | 38 |
import eu.etaxonomy.taxeditor.ui.section.name.NonViralNameDetailSection; |
... | ... | |
42 | 41 |
import eu.etaxonomy.taxeditor.ui.section.occurrence.GeoScopeDetailSection; |
43 | 42 |
import eu.etaxonomy.taxeditor.ui.section.occurrence.IDerivedUnitFacadeDetailSection; |
44 | 43 |
import eu.etaxonomy.taxeditor.ui.section.reference.NomenclaturalReferenceDetailSection; |
45 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonBaseDetailSection; |
|
46 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonDetailElement; |
|
47 | 44 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonDetailSection; |
48 |
import eu.etaxonomy.taxeditor.ui.section.taxon.TaxonRelationshipDetailSection; |
|
49 | 45 |
|
50 | 46 |
/** |
51 | 47 |
* <p> |
... | ... | |
151 | 147 |
return true; |
152 | 148 |
} |
153 | 149 |
|
154 |
|
|
150 |
|
|
155 | 151 |
formSection.setEntity((T) input); |
156 | 152 |
|
157 | 153 |
return true; |
... | ... | |
194 | 190 |
} |
195 | 191 |
} |
196 | 192 |
|
193 |
@Override |
|
194 |
protected void expansionStateChanged(boolean expanded) { |
|
195 |
super.expansionStateChanged(expanded); |
|
196 |
PreferencesUtil.getPreferenceStore().setValue(StoreUtil.getPrefKey(formSection.getClass(), formSection.getEntity()), expanded); |
|
197 |
} |
|
198 |
|
|
197 | 199 |
} |
Also available in: Unified diff
ref #6554 Evaluate expansion state at widget creation time