Project

General

Profile

Revision 89f9d5a7

ID89f9d5a713c40e8b28c76a8488bf01315704908b
Parent ef02d142
Child 733c1cfb

Added by Katja Luther about 3 years ago

ref #7415: move name in source behind external links

View differences:

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;
14 15

  
15 16
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
16 17
import eu.etaxonomy.cdm.model.name.TaxonName;
......
18 19
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
19 20
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
20 21
import eu.etaxonomy.taxeditor.ui.element.IEntityElement;
22
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
21 23
import eu.etaxonomy.taxeditor.ui.section.supplemental.AbstractOriginalSourceElement;
22 24
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
23 25

  
......
48 50
				.createSelectionElement(TaxonName.class,//getConversationHolder(),
49 51
				        formElement, "Name in Source",
50 52
						null, EntitySelectionElement.ALL, SWT.NULL);
53

  
54
		externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE);
55
        externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
51 56
	}
52 57

  
53 58
	/** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/AbstractOriginalSourceElement.java
13 13

  
14 14
import org.eclipse.swt.SWT;
15 15
import org.eclipse.swt.events.SelectionListener;
16
import org.eclipse.ui.forms.widgets.ExpandableComposite;
17 16

  
18 17
import eu.etaxonomy.cdm.model.common.OriginalSourceBase;
19 18
import eu.etaxonomy.cdm.model.common.OriginalSourceType;
......
21 20
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
22 21
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
23 22
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
24
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
25 23
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
26 24
import eu.etaxonomy.taxeditor.ui.section.common.ExternalLinksSection;
27 25

  
......
67 65
		text_idNamespace = formFactory.createTextWithLabelElement(formElement, "ID Namespace", null, style);
68 66
		text_originaleNameString = formFactory.createTextWithLabelElement(
69 67
		        formElement, "Original Name", null, SWT.NULL);
70
		externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE);
71
		externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
68

  
69

  
72 70

  
73 71
	}
74 72

  
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;
7 8

  
8 9
import eu.etaxonomy.cdm.model.common.IdentifiableSource;
9 10
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
10 11
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
11 12
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
13
import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
12 14

  
13 15
/**
14 16
 * @author n.hoffmann
......
26 28
	@Override
27 29
	public void createControls(ICdmFormElement formElement, int style) {
28 30
		super.createControls(formElement, style);
31
		externalLinks = formFactory.createExternalLinksSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE);
32
        externalLinks.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
29 33
	}
30 34

  
31 35
	/** {@inheritDoc} */

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)