Project

General

Profile

Download (1.61 KB) Statistics
| Branch: | Tag: | Revision:
1 f18e39bb n.hoffmann
/**
2
* Copyright (C) 2009 EDIT
3 139902da Patric Plitzner
* European Distributed Institute of Taxonomy
4 f18e39bb n.hoffmann
* http://www.e-taxonomy.eu
5 139902da Patric Plitzner
*
6 f18e39bb n.hoffmann
* 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
package eu.etaxonomy.taxeditor.ui.section.common;
10
11
import org.eclipse.jface.viewers.ISelectionProvider;
12
13
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
14
import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
15 78222507 n.hoffmann
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16 dacb59c9 Patric Plitzner
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17 139902da Patric Plitzner
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
18 f18e39bb n.hoffmann
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
19
20
/**
21
 * @author n.hoffmann
22
 * @date Dec 1, 2011
23
 *
24
 */
25
public class ReferencedEntityDetailSection extends AbstractCdmDetailSection<ReferencedEntityBase>{
26
27
	public ReferencedEntityDetailSection(CdmFormFactory formFactory,
28
			ConversationHolder conversation, ICdmFormElement parentElement,
29
			ISelectionProvider selectionProvider, int style) {
30
		super(formFactory, conversation, parentElement, selectionProvider, style);
31
	}
32
33
	@Override
34
	public String getHeading() {
35
		return "Reference";
36
	}
37
38 139902da Patric Plitzner
	/* (non-Javadoc)
39
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
40
	 */
41
	@Override
42
	protected AbstractCdmDetailElement<ReferencedEntityBase> createCdmDetailElement(AbstractCdmDetailSection<ReferencedEntityBase> parentElement, int style) {
43
	    return formFactory.createReferenceEntityDetailElement(parentElement);
44
	}
45 f18e39bb n.hoffmann
46
}