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
.feature
;
11 import org
.apache
.commons
.lang3
.StringUtils
;
12 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
14 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
15 import eu
.etaxonomy
.cdm
.model
.term
.TermNode
;
16 import eu
.etaxonomy
.cdm
.persistence
.dto
.TermNodeDto
;
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
;
28 public class FeatureNodeDetailSection
extends AbstractCdmDetailSection
<TermNodeDto
> {
30 public FeatureNodeDetailSection(CdmFormFactory formFactory
,
31 ConversationHolder conversation
, ICdmFormElement parentElement
,
32 ISelectionProvider selectionProvider
, int style
) {
33 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
37 public String
getHeading() {
38 String
[] r
= TermNode
.class.getSimpleName().split("(?=\\p{Upper})");
39 String header
= StringUtils
.join(r
," ");
47 protected AbstractCdmDetailElement
<TermNodeDto
> createCdmDetailElement(AbstractCdmDetailSection
<TermNodeDto
> parentElement
,
49 return formFactory
.createFeatureNodeDetailElement(parentElement
, style
);