private DragSource addDragSupport(Control control, int operations,
Transfer[] transferTypes, DragSourceListener listener) {
DragSource source = new DragSource(control, operations);
source.setTransfer(transferTypes);
source.addDragListener(listener);
source.setDragSourceEffect(new DragSourceEffect(control) {
public void dragStart(DragSourceEvent event) {
event.image = createDragEffectImage();
}
});
return source;