Project

General

Profile

Download (1.49 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.taxon;
12

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

    
15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
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 Nov 4, 2009
25
 * @version 1.0
26
 */
27
public class TaxonBaseDetailSection extends AbstractCdmDetailSection<TaxonBase> {
28

    
29
	public TaxonBaseDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) {
30
		super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
31
	}
32

    
33
	/** {@inheritDoc} */
34
	@Override
35
	public String getHeading() {
36
		return getEntity() != null ? getEntity().getClass().getSimpleName() : "TaxonBase";
37
	}
38

    
39
	@Override
40
	protected AbstractCdmDetailElement<TaxonBase> createCdmDetailElement(AbstractCdmDetailSection<TaxonBase> parentElement, int style) {
41
	    return formFactory.createTaxonBaseDetailElement(parentElement, style);
42
	}
43

    
44
}
(4-4/8)