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.e4.container;
|
10
|
|
11
|
import org.eclipse.swt.graphics.Font;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.taxon.Taxon;
|
14
|
import eu.etaxonomy.taxeditor.model.AbstractUtility;
|
15
|
import eu.etaxonomy.taxeditor.preference.Resources;
|
16
|
|
17
|
public class AcceptedNameContainerE4 extends AbstractGroupedContainerE4<Taxon> {
|
18
|
|
19
|
public AcceptedNameContainerE4(AcceptedGroupE4 group, Taxon taxon) {
|
20
|
super(group, taxon);
|
21
|
}
|
22
|
|
23
|
@Override
|
24
|
public void initializeComposite(){
|
25
|
setFont(getViewerFont());
|
26
|
|
27
|
initTextViewer();
|
28
|
}
|
29
|
|
30
|
/** {@inheritDoc} */
|
31
|
@Override
|
32
|
protected Font getViewerFont() {
|
33
|
return AbstractUtility.getFont(Resources.ACCEPTED_TAXON_FONT);
|
34
|
}
|
35
|
|
36
|
/** {@inheritDoc} */
|
37
|
@Override
|
38
|
protected void updateNonEditableInfo() {
|
39
|
// not needed
|
40
|
}
|
41
|
|
42
|
|
43
|
@Override
|
44
|
protected void updateIcon() {
|
45
|
setIcon(ACCEPTED_ICON);
|
46
|
}
|
47
|
|
48
|
@Override
|
49
|
protected void updateIndent() {
|
50
|
setIndent(ACCEPTED_INDENT);
|
51
|
}
|
52
|
|
53
|
}
|