【发布时间】:2011-12-10 23:21:24
【问题描述】:
我在我的 rcp 应用程序中使用 Viewer Framework,我想为查看器行着色,我试图覆盖 ColumnLabelProvider 的 getBackground 方法,下面是代码 sn-p
col.setLabelProvider(new ColumnLabelProvider(){
----//other methods
@override
public Color getBackground(Object element) {
return gray;//here gray is color object defined somewhere in class
}
});
这为列着色,但不是一行,下面是输出
我如何正确地做到这一点
【问题讨论】:
标签: eclipse-plugin swt eclipse-rcp jface