paintListener = new PaintListener() { public void paintControl(PaintEvent e) { if (dropSelection == null || dropSelection.isDisposed()) return; GC gc = e.gc; Color foreground = gc.getForeground(); Display display = e.widget.getDisplay(); gc.setForeground(display.getSystemColor(SWT.COLOR_WIDGET_HIGHLIGHT_SHADOW)); Rectangle bounds = dropSelection.getBounds(0); Rectangle area = TableDragUnderEffect.this.table.getClientArea(); gc.drawRectangle(area.x, bounds.y + 1, area.width - 1, bounds.height - 3); gc.setForeground(foreground); } };
TableDragUnderEffect(Table table) {	this.table = table;}