/** * The drop data is requested. * Updates the current listener and then forwards the event to it. * * @param event the drag source event * @see DragSourceListener#dragSetData(DragSourceEvent) */ public void dragSetData(final DragSourceEvent event) { // if (Policy.DEBUG_DRAG_DROP) // System.out.println("Drag Set Data: " + toString()); //$NON-NLS-1$ updateCurrentListener(event); // find a listener that can provide the given data type if (currentListener != null) { SafeRunnable.run(new SafeRunnable() { public void run() throws Exception { currentListener.dragSetData(event); } }); } }
/** * The drop data is requested. * Updates the current listener and then forwards the event to it. * * @param event the drag source event * @see DragSourceListener#dragSetData(DragSourceEvent) */ @Override public void dragSetData(final DragSourceEvent event) { // if (Policy.DEBUG_DRAG_DROP) // System.out.println("Drag Set Data: " + toString()); //$NON-NLS-1$ updateCurrentListener(event); // find a listener that can provide the given data type if (currentListener != null) { SafeRunnable.run(new SafeRunnable() { @Override public void run() throws Exception { currentListener.dragSetData(event); } }); } }
/** * The drop data is requested. * Updates the current listener and then forwards the event to it. * * @param event the drag source event * @see DragSourceListener#dragSetData(DragSourceEvent) */ @Override public void dragSetData(final DragSourceEvent event) { // if (Policy.DEBUG_DRAG_DROP) // System.out.println("Drag Set Data: " + toString()); //$NON-NLS-1$ updateCurrentListener(event); // find a listener that can provide the given data type if (currentListener != null) { SafeRunnable.run(new SafeRunnable() { @Override public void run() throws Exception { currentListener.dragSetData(event); } }); } }