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
.cdm
.model
.taxon
.Taxon
;
18 import eu
.etaxonomy
.taxeditor
.editor
.AbstractTaxonEditor
;
19 import eu
.etaxonomy
.taxeditor
.propertysheet
.name
.AcceptedTaxonPropertySource
;
26 public class AcceptedNameComposite
extends NameComposite
<Taxon
> {
27 @SuppressWarnings("unused")
28 private static final Logger logger
= Logger
29 .getLogger(AcceptedNameComposite
.class);
31 public AcceptedNameComposite(AbstractTaxonEditor editor
, Composite groupComposite
) {
32 super(editor
, groupComposite
, editor
.getTaxon());
34 initializeComposite();
37 public void initializeComposite(){
38 // setIsDraggable(false);
39 setIcon(ACCEPTED_ICON
);
40 setFont(getViewerFont());
41 setIndent(ACCEPTED_INDENT
);
43 initTextViewer(taxon
);
46 public IPropertySource
getPropertySource() {
47 return new AcceptedTaxonPropertySource(taxon
);
51 protected Font
getViewerFont() {
56 protected TaxonNameBase
getName() {
57 return taxon
.getName();
60 public Object
getData () {