Project

General

Profile

Download (2.17 KB) Statistics
| Branch: | Tag: | Revision:
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.model.occurrence.DerivedUnitBase;
17
import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
18
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
20
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
21

    
22
/**
23
 * <p>DerivedUnitFacadeDetailSection class.</p>
24
 *
25
 * @author n.hoffmann
26
 * @created Jun 17, 2010
27
 * @version 1.0
28
 */
29
public class DerivedUnitFacadeDetailSection extends AbstractCdmDetailSection<DerivedUnitBase> {
30

    
31
	/**
32
	 * <p>Constructor for DerivedUnitFacadeDetailSection.</p>
33
	 *
34
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
35
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
36
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
37
	 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
38
	 * @param style a int.
39
	 */
40
	public DerivedUnitFacadeDetailSection(CdmFormFactory formFactory, ConversationHolder conversation,
41
			ICdmFormElement parentElement,
42
			ISelectionProvider selectionProvider, int style) {
43
		super(formFactory, conversation, parentElement, selectionProvider, style);
44
	}
45

    
46
	/** {@inheritDoc} */
47
	@Override
48
	public String getHeading() {
49
		return "Unit";
50
	}
51

    
52
	/* (non-Javadoc)
53
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
54
	 */
55
	@Override
56
	protected AbstractCdmDetailElement<DerivedUnitBase> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitBase> parentElement, int style) {
57
	    return formFactory.createDerivedUnitFacadeDetailElement(parentElement);
58
	}
59
}
(11-11/29)