/** Private constructor to force people to use the map. */ private DropTargetRouter(Control ctl) { target = new DropTarget(ctl, DndOp.dropAll()); target.addDropListener(new DelegatingListener()); target.setDropTargetEffect(null); }
if(effect != null){ dragTarget.setDropTargetEffect(effect); dragTarget.addDropListener(effect);