3 * Copyright (C) 2007 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.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.group
;
13 import org
.eclipse
.jface
.viewers
.ISelectionProvider
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
16 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
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
;
24 * @created Mar 9, 2011
27 public class GroupDetailSection
extends AbstractCdmDetailSection
<Group
> {
32 * @param parentElement
33 * @param selectionProvider
36 public GroupDetailSection(CdmFormFactory formFactory
,
37 ConversationHolder conversation
, ICdmFormElement parentElement
,
38 ISelectionProvider selectionProvider
, int style
) {
39 super(formFactory
, conversation
, parentElement
, selectionProvider
, style
);
43 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading()
46 public String
getHeading() {
47 return "Group " + (getEntity() != null ?
getEntity().getName() : "");
51 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
54 protected AbstractCdmDetailElement
<Group
> createCdmDetailElement(AbstractCdmDetailSection
<Group
> parentElement
, int style
) {
55 return formFactory
.createGroupDetailElement(parentElement
);