Project

General

Profile

Download (1.58 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
4
* http://www.e-taxonomy.eu
5
* 
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.
8
*/
9
package eu.etaxonomy.taxeditor.editor.name;
10

    
11
import org.apache.log4j.Logger;
12
import org.eclipse.swt.graphics.Font;
13

    
14
import eu.etaxonomy.cdm.model.taxon.Taxon;
15
import eu.etaxonomy.taxeditor.editor.EditorUtil;
16
import eu.etaxonomy.taxeditor.preference.Resources;
17

    
18
/**
19
 * <p>AcceptedNameContainer class.</p>
20
 *
21
 * @author p.ciardelli
22
 * @created 13.01.2009
23
 * @version 1.0
24
 */
25
public class AcceptedNameContainer extends AbstractGroupedContainer<Taxon> {
26
	@SuppressWarnings("unused")
27
	private static final Logger logger = Logger
28
			.getLogger(AcceptedNameContainer.class);
29
	
30
	/**
31
	 * <p>Constructor for AcceptedNameContainer.</p>
32
	 *
33
	 * @param editor a {@link eu.etaxonomy.taxeditor.editor.name.TaxonNameEditor} object.
34
	 * @param group a {@link eu.etaxonomy.taxeditor.editor.name.AbstractGroup} object.
35
	 */
36
	public AcceptedNameContainer(TaxonNameEditor editor, AbstractGroup group) {
37
		super(editor, group, editor.getTaxon());
38
	}
39

    
40

    
41
	/**
42
	 * <p>initializeComposite</p>
43
	 */
44
	public void initializeComposite(){
45
		setIcon(ACCEPTED_ICON);
46
		setFont(getViewerFont());
47
		setIndent(ACCEPTED_INDENT);
48
		
49
		initTextViewer();
50
	}
51
	
52
	/** {@inheritDoc} */
53
	@Override
54
	protected Font getViewerFont() {
55
		return EditorUtil.getFont(Resources.ACCEPTED_TAXON_FONT);
56
	}
57

    
58

    
59
	
60
	/** {@inheritDoc} */
61
	@Override
62
	protected void updateNonEditableInfo() {
63
		// not needed
64
	}
65
}
(3-3/22)