c2ae96f52ef0504d08be5275e2d622cf8f1b4a37
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / DeterminationDetailSection.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.ui.section.occurrence;
12
13 import org.eclipse.jface.viewers.ISelectionProvider;
14
15 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16 import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
17 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
19 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
20 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
21
22 /**
23 * @author n.hoffmann
24 * @created May 11, 2011
25 * @version 1.0
26 */
27 public class DeterminationDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection {
28
29 /**
30 * @param formFactory
31 * @param conversation
32 * @param parentElement
33 * @param selectionProvider
34 * @param style
35 */
36 public DeterminationDetailSection(CdmFormFactory formFactory,
37 ConversationHolder conversation, ICdmFormElement parentElement,
38 ISelectionProvider selectionProvider, int style) {
39 super(formFactory, conversation, parentElement, selectionProvider, style);
40 }
41
42 /* (non-Javadoc)
43 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
44 */
45 @Override
46 public String getHeading() {
47 return "Determinations";
48 }
49
50 /* (non-Javadoc)
51 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
52 */
53 @Override
54 protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) {
55 return formFactory.createDeterminationDetailElement(parentElement);
56 }
57
58 }