use of net.sourceforge.nattable.selection.config.DefaultSelectionStyleConfiguration in project translationstudio8 by heartsome.
the class XLIFFEditorSelectionLayerConfiguration method addSelectionStyleConfig.
protected void addSelectionStyleConfig() {
// 去掉表头选中样式和选中单元格样式
DefaultSelectionStyleConfiguration configure = new DefaultSelectionStyleConfiguration() {
@Override
protected void configureHeaderHasSelectionStyle(IConfigRegistry configRegistry) {
}
@Override
protected void configureHeaderFullySelectedStyle(IConfigRegistry configRegistry) {
}
@Override
protected void configureSelectionAnchorStyle(IConfigRegistry configRegistry) {
}
};
//Display.getCurrent().getSystemColor(SWT.COLOR_LIST_SELECTION);
configure.selectionBgColor = GUIHelper.getColor(210, 210, 240);
configure.selectionFgColor = Display.getCurrent().getSystemColor(SWT.COLOR_BLACK);
addConfiguration(configure);
}
Aggregations