Revision a2f0974f
Added by Niels Hoffmann over 12 years ago
eu.etaxonomy.taxeditor.editor.rcp/src/eu/etaxonomy/taxeditor/singlesource/editor/key/polytomous/PolytomousKeyListLabelProviderFacadeImpl.java | ||
---|---|---|
11 | 11 |
package eu.etaxonomy.taxeditor.singlesource.editor.key.polytomous; |
12 | 12 |
|
13 | 13 |
import org.apache.log4j.Logger; |
14 |
import org.eclipse.jface.viewers.StyledCellLabelProvider;
|
|
14 |
import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider;
|
|
15 | 15 |
import org.eclipse.jface.viewers.StyledString; |
16 | 16 |
import org.eclipse.jface.viewers.StyledString.Styler; |
17 | 17 |
import org.eclipse.jface.viewers.ViewerCell; |
... | ... | |
23 | 23 |
import eu.etaxonomy.cdm.common.CdmUtils; |
24 | 24 |
import eu.etaxonomy.cdm.model.description.KeyStatement; |
25 | 25 |
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode; |
26 |
import eu.etaxonomy.taxeditor.singlesource.editor.view.concept.ConceptLabelProviderFacadeImpl; |
|
27 | 26 |
import eu.etaxonomy.taxeditor.singlesource.org.eclipse.swt.widgets.DisplayProxy; |
28 | 27 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
29 | 28 |
|
... | ... | |
32 | 31 |
* @created Apr 18, 2011 |
33 | 32 |
* @version 1.0 |
34 | 33 |
*/ |
35 |
public class PolytomousKeyListLabelProviderFacadeImpl extends StyledCellLabelProvider {
|
|
34 |
public class PolytomousKeyListLabelProviderFacadeImpl extends PolytomousKeyListLabelProviderFacade implements IStyledLabelProvider {
|
|
36 | 35 |
|
37 | 36 |
private static final Logger logger = Logger.getLogger(PolytomousKeyListLabelProviderFacadeImpl.class); |
38 | 37 |
|
38 |
protected Object getInstanceInternal() |
|
39 |
{ |
|
40 |
PolytomousKeyListLabelProviderFacadeImpl INST = new PolytomousKeyListLabelProviderFacadeImpl(); |
|
41 |
return INST; |
|
42 |
} |
|
43 |
|
|
44 |
|
|
39 | 45 |
private static Color colorLink = DisplayProxy.getDefault().getSystemColor( |
40 | 46 |
SWT.COLOR_BLUE); |
41 | 47 |
private Styler styler; |
... | ... | |
44 | 50 |
// TODO make this configurable via preferences |
45 | 51 |
private static final String INCREMENTOR_CHARACTER = "'"; |
46 | 52 |
|
53 |
public PolytomousKeyListLabelProviderFacadeImpl() { |
|
54 |
|
|
55 |
} |
|
56 |
|
|
47 | 57 |
/* |
48 | 58 |
* (non-Javadoc) |
49 | 59 |
* |
Also available in: Unified diff