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
.TermVocabulary
;
16 import eu
.etaxonomy
.taxeditor
.ui
.forms
.CdmFormFactory
;
17 import eu
.etaxonomy
.taxeditor
.ui
.forms
.CdmFormFactory
.DetailType
;
18 import eu
.etaxonomy
.taxeditor
.ui
.forms
.ICdmFormElement
;
19 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
26 public class TermVocabularyDetailSection
extends
27 AbstractCdmDetailSection
<TermVocabulary
> {
32 * @param parentElement
33 * @param selectionProvider
36 public TermVocabularyDetailSection(CdmFormFactory formFactory
,
37 ConversationHolder conversation
, ICdmFormElement parentElement
,
38 ISelectionProvider selectionProvider
, int style
) {
39 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
40 // TODO Auto-generated constructor stub
44 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getDetailType()
47 protected DetailType
getDetailType() {
49 return DetailType
.TERM_VOCABULARY
;
53 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
56 public String
getHeading() {
58 return "Vocabulary: "+ (getEntity() != null ?
getEntity().getLabel() : "");
62 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#setSectionTitle()
65 protected void setSectionTitle() {
66 setText(getHeading());