Project

General

Profile

Download (1.33 KB) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.taxeditor.ui.section.taxon;
2

    
3
import org.eclipse.jface.viewers.ISelectionProvider;
4

    
5
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
6
import eu.etaxonomy.cdm.model.taxon.Taxon;
7
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
8
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
9
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
10
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
11
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
12
import eu.etaxonomy.taxeditor.ui.section.ICdmDetailElement;
13

    
14
public class TaxonDetailSection extends AbstractCdmDetailSection<Taxon> {
15

    
16
	
17
	public TaxonDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) {
18
		super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
19
	}
20

    
21

    
22
	/** {@inheritDoc} */
23
	@Override
24
	public String getHeading() {
25
		return getEntity() != null ? getEntity().getClass().getSimpleName() : "Taxon";
26
	}
27

    
28
	@Override
29
	protected AbstractCdmDetailElement<Taxon> createCdmDetailElement(AbstractCdmDetailSection<Taxon> parentElement, int style) {
30
		return formFactory.createTaxonOfRelationshipDetailElement(parentElement, style);
31
	}
32

    
33
	public void setTaxon(Taxon fromTaxon) {
34
		// TODO Auto-generated method stub
35
		
36
	}
37

    
38
	
39
	
40

    
41
}
(6-6/10)