Revision 98db3bf7
Added by Patrick Plitzner almost 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/DescriptionElementSourceElement.java | ||
---|---|---|
11 | 11 |
|
12 | 12 |
import org.eclipse.swt.SWT; |
13 | 13 |
import org.eclipse.swt.events.SelectionListener; |
14 |
import org.eclipse.ui.forms.widgets.ExpandableComposite; |
|
15 | 14 |
|
16 | 15 |
import eu.etaxonomy.cdm.model.description.DescriptionElementSource; |
17 | 16 |
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate; |
18 | 17 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
19 | 18 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
19 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
|
20 | 20 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
23 | 23 |
import eu.etaxonomy.taxeditor.ui.element.IEntityElement; |
24 | 24 |
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants; |
25 |
import eu.etaxonomy.taxeditor.ui.section.common.ExternalLinksSection; |
|
25 | 26 |
import eu.etaxonomy.taxeditor.ui.section.supplemental.AbstractOriginalSourceElement; |
26 | 27 |
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement; |
27 | 28 |
|
... | ... | |
53 | 54 |
formElement, "Name in Source", |
54 | 55 |
null, EntitySelectionElement.ALL, SWT.NULL); |
55 | 56 |
|
56 |
externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE);
|
|
57 |
externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, StoreUtil.getSectionStyle(ExternalLinksSection.class, DescriptionElementSource.class.getCanonicalName()));
|
|
57 | 58 |
externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
58 | 59 |
} |
59 | 60 |
|
Also available in: Unified diff
ref #8260 Complete refactoring of expansion state saving