2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.taxeditor
.ui
.section
.vocabulary
;
11 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
13 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
14 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaLevel
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
17 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
18 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
25 public class NamedAreaLevelDetailSection
extends AbstractCdmDetailSection
<NamedAreaLevel
> {
29 * @param parentElement
32 public NamedAreaLevelDetailSection(CdmFormFactory formFactory
,
33 ConversationHolder conversation
, ICdmFormElement parentElement
,
34 ISelectionProvider selectionProvider
, int style
) {
35 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
39 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
42 public String
getHeading() {
43 return "Defined Term: "+ (getEntity() != null ?
getEntity().getLabel() : "");
47 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
50 protected AbstractCdmDetailElement
<NamedAreaLevel
> createCdmDetailElement(AbstractCdmDetailSection
<NamedAreaLevel
> parentElement
, int style
) {
51 return formFactory
.createNamedAreaLevelElement(parentElement
);