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
.model
.permission
.Group
;
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
;
22 * @created Mar 9, 2011
24 public class GroupDetailSection
extends AbstractCdmDetailSection
<Group
> {
26 public GroupDetailSection(CdmFormFactory formFactory
,
27 ICdmFormElement parentElement
,
28 ISelectionProvider selectionProvider
, int style
) {
29 super(formFactory
, parentElement
, selectionProvider
, style
);
33 public String
getHeading() {
34 return "Group " + (getEntity() != null ?
getEntity().getName() : "");
38 protected AbstractCdmDetailElement
<Group
> createCdmDetailElement(AbstractCdmDetailSection
<Group
> parentElement
, int style
) {
39 return formFactory
.createGroupDetailElement(parentElement
);