Project

General

Profile

Download (1.87 KB) Statistics
| Branch: | Tag: | Revision:
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

    
10
package eu.etaxonomy.taxeditor.ui.section.occurrence.association;
11

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

    
14
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
15
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
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
import eu.etaxonomy.taxeditor.ui.section.occurrence.IDerivedUnitFacadeDetailSection;
21

    
22
/**
23
 *
24
 * @author pplitzner
25
 * @date Dec 1, 2014
26
 *
27
 */
28
public class TaxonAssociationDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection{
29

    
30
	public TaxonAssociationDetailSection(CdmFormFactory formFactory,
31
			ConversationHolder conversation, ICdmFormElement parentElement,
32
			ISelectionProvider selectionProvider, int style) {
33
		super(formFactory, conversation, parentElement, selectionProvider, style);
34
	}
35

    
36
	/* (non-Javadoc)
37
	 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
38
	 */
39
	/** {@inheritDoc} */
40
	@Override
41
	public String getHeading() {
42
		return "Taxon Associations";
43
	}
44

    
45
	/* (non-Javadoc)
46
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
47
	 */
48
	@Override
49
	protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) {
50
	    return formFactory.createTaxonAssociationDetailElement(parentElement);
51
	}
52
}
(4-4/4)