Example usage for org.eclipse.jface.viewers ViewerCell setBackground

List of usage examples for org.eclipse.jface.viewers ViewerCell setBackground

Introduction

In this page you can find the example usage for org.eclipse.jface.viewers ViewerCell setBackground.

Prototype

public void setBackground(Color background) 

Source Link

Document

Set the background color of the cell.

Usage

From source file:uk.ac.gda.common.rcp.jface.viewers.ObservableMapColumnLabelProvider.java

License:Open Source License

@Override
public void update(ViewerCell cell) {
    Object element = cell.getElement();
    Object value = attributeMaps[0].get(element);
    cell.setText(getText(value));/*from ww w .j a  va2  s. c o  m*/
    Image image = getImage(value);
    cell.setImage(image);
    cell.setBackground(getBackground(value));
    cell.setForeground(getForeground(value));
    cell.setFont(getFont(value));

}