2 * Copyright (C) 2007 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.
10 package eu
.etaxonomy
.taxeditor
.ui
.section
.group
;
12 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
14 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
15 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
18 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
19 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailSection
;
23 * @created Mar 9, 2011
26 public class GroupDetailSection
extends AbstractCdmDetailSection
<Group
> {
31 * @param parentElement
32 * @param selectionProvider
35 public GroupDetailSection(CdmFormFactory formFactory
,
36 ConversationHolder conversation
, ICdmFormElement parentElement
,
37 ISelectionProvider selectionProvider
, int style
) {
38 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
42 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
45 public String
getHeading() {
46 return "Group " + (getEntity() != null ?
getEntity().getName() : "");
50 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
53 protected AbstractCdmDetailElement
<Group
> createCdmDetailElement(AbstractCdmDetailSection
<Group
> parentElement
, int style
) {
54 return formFactory
.createGroupDetailElement(parentElement
);