1 package org.simantics.modeling.adapters;
3 import org.simantics.browsing.ui.content.LabelDecorator;
4 import org.simantics.browsing.ui.model.labeldecorators.AbstractLabelDecorator;
5 import org.simantics.db.ReadGraph;
6 import org.simantics.db.Resource;
7 import org.simantics.db.exception.DatabaseException;
8 import org.simantics.modeling.ModelingResources;
10 public class SCLLabelForegroundColorRule extends SCLLabelColorRule {
12 public SCLLabelForegroundColorRule(ReadGraph graph, Resource rule) {
13 super(graph, rule, ModelingResources.getInstance(graph).SCLLabelForegroundColorRule_getColor);
17 public LabelDecorator getLabelDecorator(ReadGraph graph, Object content) throws DatabaseException {
18 return new AbstractLabelDecorator() {
21 public <Color> Color decorateForeground(Color color, String column, int itemIndex) {
22 return decorateColor(graph, content, color, column, itemIndex);