Project

General

Profile

Revision b937b2de

IDb937b2de91a78e135be9b56ffd67291a1d74e8b3
Parent 7971c018
Child 411130a5

Added by Katja Luther 10 months ago

ref #7415: move type at top and shorter labels

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksElement.java
11 11
import org.eclipse.swt.SWT;
12 12
import org.eclipse.swt.events.SelectionListener;
13 13

  
14
import eu.etaxonomy.cdm.model.common.Language;
14 15
import eu.etaxonomy.cdm.model.media.ExternalLink;
15 16
import eu.etaxonomy.cdm.model.media.ExternalLinkType;
16 17
import eu.etaxonomy.taxeditor.store.CdmStore;
......
66 67
        if (entity.getLinkType() != null){
67 68
            combo_linkType.setSelection(entity.getLinkType());
68 69
        }
69
        if (entity.getDescription() != null 
70
        if (entity.getDescription() != null
70 71
        		&& entity.getDescription().get(CdmStore.getDefaultLanguage()) != null) {
71 72
            description.setText(entity.getDescription().get(
72 73
                        CdmStore.getDefaultLanguage()).getText());
74
        }else if (entity.getDescription() != null ){
75
            description.setText(entity.getDescription().get(Language.DEFAULT()).getText());
73 76
        }
74 77
    }
75 78

  
76 79
    @Override
77 80
    public void createControls(ICdmFormElement element, int style) {
78
        externalLinkUriText = formFactory.createUriWithLabelElement(element, "External Link URI", null, style);
81

  
79 82
        combo_linkType = formFactory.createEnumComboElement(ExternalLinkType.class, element, style);
83
        externalLinkUriText = formFactory.createUriWithLabelElement(element, "URI", null,  style);
84

  
80 85
        description = formFactory.createMultiLineTextWithLabel(this, "Description", 50, SWT.WRAP);
81 86

  
82 87

  
88

  
83 89
    }
84 90

  
85 91
    @Override
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksSection.java
33 33
     * @param formElement
34 34
     */
35 35
    public ExternalLinksSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, int style) {
36
        super(cdmFormFactory, conversation, parentElement, "External links", style);
36
        super(cdmFormFactory, conversation, parentElement, "External Links", style);
37 37

  
38 38
    }
39 39

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)