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
.common
.TermVocabulary
;
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 TermVocabularyDetailSection
extends
26 AbstractCdmDetailSection
<TermVocabulary
> {
31 * @param parentElement
32 * @param selectionProvider
35 public TermVocabularyDetailSection(CdmFormFactory formFactory
,
36 ConversationHolder conversation
, ICdmFormElement parentElement
,
37 ISelectionProvider selectionProvider
, int style
) {
38 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
39 // TODO Auto-generated constructor stub
43 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
46 public String
getHeading() {
48 return "Vocabulary: "+ (getEntity() != null ?
getEntity().getLabel() : "");
52 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#setSectionTitle()
55 protected void setSectionTitle() {
56 setText(getHeading());
60 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
63 protected AbstractCdmDetailElement
<TermVocabulary
> createCdmDetailElement(AbstractCdmDetailSection
<TermVocabulary
> parentElement
, int style
) {
64 return formFactory
.createTermVocabularyDetailElement(parentElement
);