1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.ui.section.agent;
|
10
|
|
11
|
import org.eclipse.jface.viewers.ISelectionProvider;
|
12
|
|
13
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
14
|
import eu.etaxonomy.cdm.model.agent.Person;
|
15
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
16
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
17
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
18
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
|
19
|
|
20
|
/**
|
21
|
* <p>PersonDetailSection class.</p>
|
22
|
*
|
23
|
* @author n.hoffmann
|
24
|
* @created Mar 8, 2010
|
25
|
*/
|
26
|
public class PersonDetailSection extends AbstractCdmDetailSection<Person>{
|
27
|
|
28
|
public PersonDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement,
|
29
|
ISelectionProvider selectionProvider, int style) {
|
30
|
super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
|
31
|
}
|
32
|
|
33
|
@Override
|
34
|
public String getHeading() {
|
35
|
return "Person";
|
36
|
}
|
37
|
|
38
|
@Override
|
39
|
protected AbstractCdmDetailElement<Person> createCdmDetailElement(AbstractCdmDetailSection<Person> parentElement, int style) {
|
40
|
return formFactory.createPersonDetailElement(parentElement, style);
|
41
|
}
|
42
|
|
43
|
|
44
|
}
|