【发布时间】:2017-03-07 03:22:46
【问题描述】:
我试过了
IConfigLabelAccumulator cellLabelAccumulator = new IConfigLabelAccumulator() {
@Override
public void accumulateConfigLabels(LabelStack configLabels, int columnPosition, int rowPosition) {
int rowIndex = bodyDataLayer.getRowIndexByPosition(rowPosition);
if ( rowIndex == 2) {
configLabels.addLabel("FOO");
}
}
};
bodyDataLayer.setConfigLabelAccumulator(cellLabelAccumulator);
natTable.getConfigRegistry().registerConfigAttribute(CellConfigAttributes.GRID_LINE_COLOR, GUIHelper.COLOR_GREEN, DisplayMode.NORMAL, "FOO");
但它没有成功。 我怎样才能做到这一点?谢谢!
【问题讨论】:
-
你的问题是什么,更多描述添加到问题中
标签: eclipse-rcp nattable