Project

General

Profile

Download (1.62 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2009 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
package eu.etaxonomy.taxeditor.ui.section.taxon;
11

    
12
import org.eclipse.jface.viewers.ISelectionProvider;
13

    
14
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
15
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
16
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
17
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
18
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
20

    
21
/**
22
 * @author n.hoffmann
23
 * @date Dec 1, 2011
24
 *
25
 */
26
public class TaxonRelationshipDetailSection extends AbstractCdmDetailSection<TaxonRelationship>{
27

    
28
	public TaxonRelationshipDetailSection(CdmFormFactory formFactory,
29
			ConversationHolder conversation, ICdmFormElement parentElement,
30
			ISelectionProvider selectionProvider, int style) {
31
		super(formFactory, conversation, parentElement, selectionProvider, style);
32
	}
33

    
34
	@Override
35
	public String getHeading() {
36
		return "Taxon Relationship";
37
	}
38

    
39
	/* (non-Javadoc)
40
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
41
	 */
42
	@Override
43
	protected AbstractCdmDetailElement<TaxonRelationship> createCdmDetailElement(AbstractCdmDetailSection<TaxonRelationship> parentElement, int style) {
44
	    return formFactory.createTaxonRelationshipDetailElement(parentElement);
45
	}
46

    
47
}
(7-7/8)