*/
package eu.etaxonomy.taxeditor.editor.definedterm;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.StyledCellLabelProvider;
+import org.eclipse.jface.viewers.ColumnLabelProvider;
+import org.eclipse.jface.viewers.DelegatingStyledCellLabelProvider.IStyledLabelProvider;
import org.eclipse.jface.viewers.StyledString;
import org.eclipse.jface.viewers.StyledString.Styler;
import org.eclipse.jface.viewers.ViewerCell;
* @since Oct 29, 2018
*
*/
-public class TermDtoLabelProvider extends StyledCellLabelProvider implements ILabelProvider{
+public class TermDtoLabelProvider //extends StyledCellLabelProvider implements ILabelProvider{
+ extends ColumnLabelProvider implements IStyledLabelProvider{
private static Color vocColor = Display.getCurrent().getSystemColor(SWT.COLOR_BLUE);
private static Color kindOfColor = Display.getCurrent().getSystemColor(SWT.COLOR_DARK_GRAY);
@Override
public Image getImage(Object element) {
- // TODO Auto-generated method stub
+
return null;
}
+ @Override
+ public StyledString getStyledText(Object element) {
+ return new StyledString(getText(element), StyledString.QUALIFIER_STYLER);
+ }
+
+
+
}