return color;
}
@Override
public Color getBackground(Object item, int columnIndex) {
BodyDeclaration element = (BodyDeclaration) item;
Color color = Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);
if (element.getNodeType() == ASTNode.TYPE_DECLARATION
|| element.getNodeType() == ASTNode.ENUM_DECLARATION) {
color = Display.getCurrent().getSystemColor(
SWT.COLOR_WIDGET_LIGHT_SHADOW);
}
if (columnIndex == 2
&& element.getNodeType() == ASTNode.TYPE_DECLARATION) {
// Was testing / adaptation successful?
if (((String) element.getProperty(ResultProperty.EXECUTABILITY
.name())).equals(Executability.TESTED.value())) {
// Set color to green if no adapter is necessary, yellow
// otherwise
if (((String) element.getProperty(ResultProperty.TEST_RESULT
.name())).startsWith("// No adapter necessary")) {
color = Display.getCurrent().getSystemColor(
SWT.COLOR_DARK_GREEN);
} else {
color = Display.getCurrent().getSystemColor(