Revision 98db3bf7
Added by Patrick Plitzner almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/IdentifiableSourceElement.java | ||
---|---|---|
4 | 4 |
package eu.etaxonomy.taxeditor.ui.section.supplemental; |
5 | 5 |
|
6 | 6 |
import org.eclipse.swt.events.SelectionListener; |
7 |
import org.eclipse.ui.forms.widgets.ExpandableComposite; |
|
8 | 7 |
|
9 | 8 |
import eu.etaxonomy.cdm.model.common.IdentifiableSource; |
9 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
10 | 10 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
11 | 11 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
12 | 12 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
13 | 13 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
14 |
import eu.etaxonomy.taxeditor.ui.section.common.ExternalLinksSection; |
|
14 | 15 |
|
15 | 16 |
/** |
16 | 17 |
* @author n.hoffmann |
... | ... | |
28 | 29 |
@Override |
29 | 30 |
public void createControls(ICdmFormElement formElement, int style) { |
30 | 31 |
super.createControls(formElement, style); |
31 |
externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE);
|
|
32 |
externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, StoreUtil.getSectionStyle(ExternalLinksSection.class, IdentifiableSource.class.getCanonicalName()));
|
|
32 | 33 |
externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
33 | 34 |
} |
34 | 35 |
|
Also available in: Unified diff
ref #8260 Complete refactoring of expansion state saving