possible bugs [message #1718583] |
Sun, 27 December 2015 17:56 |
Dmitry Dukhov Messages: 190 Registered: February 2013 |
Senior Member |
|
|
work with TableViewer
first iteration is ok . That's all right
after use filter for table rows get
"Error: Error: Operation "set" on target "w775" of type "rwt.widgets.GridItem" failed:
null is not an object (evaluating 'c.length')
Properties:
texts = STANDARD,TEST2,CLIENT,WinNT,7.1.1.0,fusion,192.168.40.140,DISABLED,SYNCRECEIVE,NO,NEVER,GRP1,,,VMware,2015-11-15 23:23:31,2015-06-24 00:59:11,NO / YES
cellForegrounds = null"
if comment this code below that's all right
Error only with RAP 3.1 m4 (with 3.0.1 without error)
but I can't refuse from m4 (there's fixed bug with works with big table(constant refresh) )
protected Color getColorForeground(TObject obj, int columnIndex) {
String name = columnsTable[columnIndex];
if (name.equalsIgnoreCase("LOCKED") && obj.get(name).equalsIgnoreCase("YES")) {
return ShopRwtWidget.getDisplay().getSystemColor(SWT.COLOR_RED);
}
if (name.equalsIgnoreCase("REPL_MODE") && obj.get(name).equalsIgnoreCase("SEND")) {
return ShopRwtWidget.getDisplay().getSystemColor(SWT.COLOR_DARK_YELLOW);
}
return null;
}
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02175 seconds