Project

General

Profile

« Previous | Next » 

Revision 4cce7202

Added by Andreas Müller about 3 years ago

ref #9331 further taxeditor adaptations to NamedSourceBase (cont.)

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/AdvancedSourceElement.java
12 12
import org.eclipse.swt.graphics.Color;
13 13
import org.eclipse.swt.widgets.Display;
14 14

  
15
import eu.etaxonomy.cdm.model.description.DescriptionElementSource;
16 15
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
17 16
import eu.etaxonomy.cdm.model.name.TaxonName;
18 17
import eu.etaxonomy.cdm.model.reference.NamedSourceBase;
......
48 47
        Color background = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);
49 48

  
50 49
        if (entity instanceof NamedSourceBase){
51
            select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Name in Source", entity != null? ((DescriptionElementSource)entity).getNameUsedInSource(): null, EntitySelectionElement.DELETABLE, style);
50
            select_nameUsedInSource = formFactory.createSelectionElement(TaxonName.class, formElement, "Name in Source", entity != null? ((NamedSourceBase)entity).getNameUsedInSource(): null, EntitySelectionElement.DELETABLE, style);
52 51
            select_nameUsedInSource.setBackground(background);
53 52
        }
54 53
        text_originaleNameString = formFactory.createTextWithLabelElement(

Also available in: Unified diff