}
event.item = item.getItem();
//System.out.println(table.indexOf(event.item) + ": " + i);
table.setData("inPaintInfo", new InPaintInfo(item.getItem(), event.index, bounds));
if (event.item != lastItem) {
table.setData("lastIndex", null);
lastRowIndex = table.indexOf(event.item);
table.setData("lastIndex", lastRowIndex);
}
boolean doErase = true;
if (Constants.isWindows7OrHigher) {
Point location = table.toControl(event.display.getCursorLocation());
if (location.y >= bounds.y && location.y < bounds.y + bounds.height) {
doErase = false;
}
}
Font f = event.gc.getFont();
if (doErase) {
//TableItemOrTreeItem item = TableOrTreeUtils.getEventItem(event.item);
TableViewSWT_EraseItem.eraseItem(event, event.gc, item, event.index, true, bounds, tv, true);
}
//TableItemOrTreeItem item = TableOrTreeUtils.getEventItem(event.item);
paintItem(event.gc, item, event.index, lastRowIndex, bounds, tv, false);
event.gc.setFont(f);
event.gc.setClipping(r);
numPainted++;
lastItem = event.item;
}
}
//System.out.println("# Painted:" + numPainted);
} else {
TableItemOrTreeItem item = TableOrTreeUtils.getEventItem(event.item);
Rectangle bounds = item.getBounds(event.index);
table.setData("inPaintInfo", new InPaintInfo((Item) event.item, event.index, bounds));
if (event.item != lastItem) {
table.setData("lastIndex", null);
lastRowIndex = table.indexOf(event.item);
table.setData("lastIndex", lastRowIndex);