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(); gc.drawRectangle(bounds.x + 1, bounds.y + 1, bounds.width - 3, bounds.height - 3); gc.setForeground(foreground); } };
TreeDragUnderEffect(Tree tree) {	this.tree = tree;}