Project

General

Profile

« Previous | Next » 

Revision 36ac0d5d

Added by Katja Luther almost 3 years ago

add lsid field to person details

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/PersonDetailElement.java
18 18
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
19 19
import eu.etaxonomy.taxeditor.ui.element.CdmPropertyChangeEvent;
20 20
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
21
import eu.etaxonomy.taxeditor.ui.element.LsidWithExceptionLabelElement;
21 22
import eu.etaxonomy.taxeditor.ui.element.OrcidWithLabelElement;
22 23
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
23 24
import eu.etaxonomy.taxeditor.ui.element.TimePeriodElement;
......
41 42
	private TextWithLabelElement text_initials;
42 43
	private TimePeriodElement time_lifespan;
43 44
	private OrcidWithLabelElement text_orcid;
44

  
45
    private LsidWithExceptionLabelElement text_lsid;
45 46
	private Collection<Object> excludeFromIrrelevantToggleableObjects;
46 47

  
47 48
	public PersonDetailElement(CdmFormFactory cdmFormFactory,
......
70 71
				"Prefix", entity.getPrefix(), SWT.NULL);
71 72
		time_lifespan = formFactory.createTimePeriodElement(formElement, "Lifespan", entity.getLifespan(), SWT.NULL);
72 73
		text_orcid = formFactory.createOrcidWithLabelElement(formElement, "ORCID", entity.getOrcid(), SWT.NULL);
74
		text_lsid = formFactory.createLsidWithExceptionLabelElement(formElement, "Lsid", entity.getLsid(), SWT.NULL);
73 75
		getLayoutComposite().layout();
74 76

  
75 77
	}
......
106 108
			getEntity().setSuffix(text_suffix.getText());
107 109
		}else if (eventSource == text_orcid) {
108 110
            getEntity().setOrcid(text_orcid.parseText());
111
        }else if (eventSource == text_lsid) {
112
            getEntity().setLsid(text_lsid.parseText());
109 113
        }else if (eventSource == time_lifespan) {
110 114
            getEntity().setLifespan(time_lifespan.getTimePeriod());
111 115
        }

Also available in: Unified diff