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.
9 package eu
.etaxonomy
.taxeditor
.editor
.name
;
11 import org
.apache
.log4j
.Logger
;
12 import org
.eclipse
.swt
.graphics
.Font
;
13 import org
.eclipse
.swt
.widgets
.Composite
;
14 import org
.eclipse
.ui
.views
.properties
.IPropertySource
;
16 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
17 import eu
.etaxonomy
.taxeditor
.editor
.AbstractTaxonEditor
;
18 import eu
.etaxonomy
.taxeditor
.propertysheet
.name
.AcceptedTaxonPropertySource
;
25 public class AcceptedNameComposite
extends NameComposite
{
26 @SuppressWarnings("unused")
27 private static final Logger logger
= Logger
28 .getLogger(AcceptedNameComposite
.class);
30 public AcceptedNameComposite(AbstractTaxonEditor editor
, Composite groupComposite
) {
31 super(editor
, groupComposite
, NameComposite
.ACCEPTED_TAXON
, editor
.getTaxon());
33 // setIsDraggable(false);
34 setIcon(ACCEPTED_ICON
);
35 setFont(getViewerFont());
36 setIndent(ACCEPTED_INDENT
);
38 initTextViewer(taxon
);
41 public IPropertySource
getPropertySource() {
42 return new AcceptedTaxonPropertySource(taxon
);
46 protected Font
getViewerFont() {
51 protected TaxonNameBase
getName() {
52 return taxon
.getName();
55 public Object
getData () {