Project

General

Profile

« Previous | Next » 

Revision 0899d61e

Added by Katja Luther about 3 years ago

fix #9545: remove external link type

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/common/ExternalLinksElement.java
8 8
*/
9 9
package eu.etaxonomy.taxeditor.ui.section.common;
10 10

  
11
import org.eclipse.swt.SWT;
11 12
import org.eclipse.swt.events.SelectionListener;
12 13

  
13 14
import eu.etaxonomy.cdm.model.media.ExternalLink;
......
65 66
            selectionArbitrator = formFactory.createSelectionArbitrator(this);
66 67
        }
67 68
        this.isShowDescription = isWithTypeAndDesc;
69
        setEntity(entity);
70

  
68 71

  
69 72
    }
70 73

  
......
80 83
            externalLinkUriText.setText(entity.getUri().toString());
81 84
        }
82 85

  
83
        if (entity.getDescription() != null && description != null) {
86
        if (entity.getDescription() != null && isShowDescription) {
87
            if (description == null){
88
                description = formFactory.createMultiLanguageTextElement(this, "Description", null, 50, SWT.NULL);
89
            }
84 90
            description.setMultilanguageText(entity.getDescription());
85 91
//            description.setText(entity.getDescription().get(
86 92
//                        CdmStore.getDefaultLanguage()).getText());

Also available in: Unified diff