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
|
/**
|
18
|
* @author pplitzner
|
19
|
* @date 24-08-2017
|
20
|
*/
|
21
|
public class AcceptedNameContainerE4 extends AbstractGroupedContainer<Taxon> {
|
22
|
|
23
|
public AcceptedNameContainerE4(AcceptedGroup group, Taxon taxon) {
|
24
|
super(group, taxon);
|
25
|
}
|
26
|
|
27
|
@Override
|
28
|
public void initializeComposite(){
|
29
|
setFont(getViewerFont());
|
30
|
|
31
|
initTextViewer();
|
32
|
}
|
33
|
|
34
|
@Override
|
35
|
protected Font getViewerFont() {
|
36
|
return AbstractUtility.getFont(Resources.ACCEPTED_TAXON_FONT);
|
37
|
}
|
38
|
|
39
|
@Override
|
40
|
protected void updateNonEditableInfo() {
|
41
|
// not needed
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
protected void updateIcon() {
|
46
|
setIcon(ACCEPTED_ICON);
|
47
|
}
|
48
|
|
49
|
@Override
|
50
|
protected void updateIndent() {
|
51
|
setIndent(ACCEPTED_INDENT);
|
52
|
}
|
53
|
}
|