3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.vocabulary
;
12 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
14 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
15 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
16 import eu
.etaxonomy
.taxeditor
.ui
.campanula
.compatibility
.ICdmFormElement
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
18 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
19 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
26 public class DefinedTermDetailSection
<T
extends DefinedTermBase
> extends AbstractCdmDetailSection
<T
> {
30 * @param definedTermClass
32 * @param parentElement
33 * @param selectionProvider
36 public DefinedTermDetailSection(CdmFormFactory formFactory
,
37 Class
<T
> definedTermClass
, ConversationHolder conversation
, ICdmFormElement parentElement
,
38 ISelectionProvider selectionProvider
, int style
) {
39 super(formFactory
, definedTermClass
, conversation
, parentElement
, selectionProvider
, style
);
43 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
46 public String
getHeading() {
47 return "Defined Term: "+ (getEntity() != null ?
getEntity().getLabel() : "");
50 //FIXME clean up create element methods
52 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElementByType(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, java.lang.Class, int)
55 protected AbstractCdmDetailElement
createCdmDetailElementByType(AbstractCdmDetailSection
<T
> parentElement
, Class
<T
> entityClass
, int style
) {
56 return formFactory
.createDefinedTermDetailElement(entityClass
, parentElement
, style
);
60 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
63 protected AbstractCdmDetailElement
<T
> createCdmDetailElement(AbstractCdmDetailSection
<T
> parentElement
, int style
) {