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
.editor
.description
;
12 import org
.apache
.log4j
.Logger
;
13 import org
.eclipse
.swt
.widgets
.Composite
;
14 import org
.eclipse
.ui
.forms
.widgets
.TableWrapLayout
;
16 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
17 import eu
.etaxonomy
.cdm
.model
.description
.TaxonDescription
;
18 import eu
.etaxonomy
.taxeditor
.editor
.GroupComposite
;
19 import eu
.etaxonomy
.taxeditor
.editor
.GroupCompositeLabel
;
26 public class DescriptionFeatureGroupComposite
extends GroupComposite
{
27 private static final Logger logger
= Logger
28 .getLogger(DescriptionFeatureGroupComposite
.class);
30 private TaxonDescription description
;
31 private Feature feature
;
33 public DescriptionFeatureGroupComposite(TaxonDescriptionEditor editor
, Composite parent
,
34 TaxonDescription description
, Feature feature
) {
36 super(editor
, parent
);
38 this.description
= description
;
39 this.feature
= feature
;
41 TableWrapLayout tlLayout
= new TableWrapLayout();
42 tlLayout
.topMargin
= 0;
43 tlLayout
.leftMargin
= 10;
46 Composite groupCompositeLabel
= new GroupCompositeLabel(this, feature
.getLabel());
49 public TaxonDescription
getDescription() {
53 public Feature
getFeature() {