X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dnd/JdtViewerDragAdapter.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dnd/JdtViewerDragAdapter.java index 20226b0..b569a2d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dnd/JdtViewerDragAdapter.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/ui/dnd/JdtViewerDragAdapter.java @@ -10,7 +10,9 @@ *******************************************************************************/ package net.sourceforge.phpdt.internal.ui.dnd; -import org.eclipse.jface.util.Assert; +//incastrix +//import org.eclipse.jface.text.Assert; +import org.eclipse.core.runtime.Assert; import org.eclipse.jface.viewers.IStructuredSelection; import org.eclipse.jface.viewers.StructuredViewer; import org.eclipse.swt.dnd.DragSourceEvent; @@ -19,17 +21,19 @@ public class JdtViewerDragAdapter extends DelegatingDragAdapter { private StructuredViewer fViewer; - public JdtViewerDragAdapter(StructuredViewer viewer, TransferDragSourceListener[] listeners) { + public JdtViewerDragAdapter(StructuredViewer viewer, + TransferDragSourceListener[] listeners) { super(listeners); Assert.isNotNull(viewer); - fViewer= viewer; + fViewer = viewer; } - + public void dragStart(DragSourceEvent event) { - IStructuredSelection selection= (IStructuredSelection)fViewer.getSelection(); + IStructuredSelection selection = (IStructuredSelection) fViewer + .getSelection(); if (selection.isEmpty()) { - event.doit= false; - return; + event.doit = false; + return; } super.dragStart(event); }