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
.editor
.description
;
13 import org
.eclipse
.swt
.widgets
.Composite
;
14 import org
.eclipse
.ui
.views
.properties
.IPropertySource
;
16 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
17 import eu
.etaxonomy
.cdm
.model
.description
.CommonTaxonName
;
18 import eu
.etaxonomy
.taxeditor
.propertysheet
.description
.CommonNamePropertySource
;
25 public class CommonNameComposite
extends DescriptionElementComposite
{
28 * @param groupComposite
29 * @param groupComposite
32 public CommonNameComposite(TaxonDescriptionEditor editor
, Composite groupComposite
,
33 CommonTaxonName element
) {
34 super(editor
, groupComposite
, element
);
42 private void setLanguageInfo() {
44 Language language
= ((CommonTaxonName
) element
).getLanguage();
45 if (language
!= null) {
46 setNonEditableInfo(language
.getDescription());
48 setNonEditableInfo("No language");
52 public IPropertySource
getPropertySource() {
53 return new CommonNamePropertySource((CommonTaxonName
) getElement());