including changes from cdmlib-print
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / section / agent / PersonDetailSection.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.section.agent;
12
13 import org.apache.log4j.Logger;
14 import org.eclipse.jface.viewers.ISelectionProvider;
15
16 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
17 import eu.etaxonomy.cdm.model.agent.Person;
18 import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
19 import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
20 import eu.etaxonomy.taxeditor.forms.CdmFormFactory.DetailType;
21 import eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection;
22
23 /**
24 * <p>PersonDetailSection class.</p>
25 *
26 * @author n.hoffmann
27 * @created Mar 8, 2010
28 * @version 1.0
29 */
30 public class PersonDetailSection extends AbstractCdmDetailSection<Person>{
31
32 private static final Logger logger = Logger
33 .getLogger(PersonDetailSection.class);
34
35 /**
36 * <p>Constructor for PersonDetailSection.</p>
37 *
38 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
39 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
40 * @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object.
41 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
42 * @param style a int.
43 */
44 public PersonDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement,
45 ISelectionProvider selectionProvider, int style) {
46 super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
47 }
48
49 /** {@inheritDoc} */
50 @Override
51 protected DetailType getDetailType() {
52 return DetailType.PERSON;
53 }
54
55 /** {@inheritDoc} */
56 @Override
57 public String getHeading() {
58 return "Person";
59 }
60 }