Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » AssertionFailedException with DND of binary type
AssertionFailedException with DND of binary type [message #203033] Wed, 16 November 2005 20:46 Go to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
I am trying to drag a binary type from a library in the package explorer
onto my GEF diagram.

When I do that I get the exception below because a DROP_MOVE (instead of a
DROP_COPY) was initiated. So when I hold down the shift key while dragging,
everthing works fine. But I don't want to hold down the shift key all the
time (move doesn't make sense for a binary type from a jar anyway).

Does anybody know what to do? Am I asking in the right forum?

org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
at org.eclipse.jface.util.Assert.isTrue(Assert.java:180)
at org.eclipse.jface.util.Assert.isTrue(Assert.java:165)
at
org.eclipse.jdt.internal.ui.dnd.BasicSelectionTransferDragAd apter.dragFinished(BasicSelectionTransferDragAdapter.java:80 )
at
org.eclipse.jdt.internal.ui.dnd.DelegatingDragAdapter.dragFi nished(DelegatingDragAdapter.java:90)
at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java :35)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:6 60)
at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:291)
at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:267)
at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java :161)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Re: AssertionFailedException with DND of binary type [message #203041 is a reply to message #203033] Wed, 16 November 2005 21:01 Go to previous messageGo to next message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Actually I lied, I always get this exception. But when I hold down the shift
key, my AbstractTransferDropTargetListener actually tries to create the
command.

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:dlg5qi$63h$1@news.eclipse.org...
>I am trying to drag a binary type from a library in the package explorer
>onto my GEF diagram.
>
> When I do that I get the exception below because a DROP_MOVE (instead of a
> DROP_COPY) was initiated. So when I hold down the shift key while
> dragging, everthing works fine. But I don't want to hold down the shift
> key all the time (move doesn't make sense for a binary type from a jar
> anyway).
>
> Does anybody know what to do? Am I asking in the right forum?
>
> org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:180)
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:165)
> at
> org.eclipse.jdt.internal.ui.dnd.BasicSelectionTransferDragAd apter.dragFinished(BasicSelectionTransferDragAdapter.java:80 )
> at
> org.eclipse.jdt.internal.ui.dnd.DelegatingDragAdapter.dragFi nished(DelegatingDragAdapter.java:90)
> at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java :35)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:6 60)
> at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:291)
> at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:267)
> at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java :161)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
>
Re: AssertionFailedException with DND of binary type [message #203049 is a reply to message #203033] Wed, 16 November 2005 21:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Ask JDT about dragging .class files.
Re: AssertionFailedException with DND of binary type [message #203125 is a reply to message #203033] Thu, 17 November 2005 20:04 Go to previous message
Felix L J Mayer is currently offline Felix L J MayerFriend
Messages: 202
Registered: July 2009
Senior Member
Just FYI: I was able to get it to work by setting

getCurrentEvent().detail = DND.DROP_COPY

in org.eclipse.gef.dnd.AbstractTransferDropTargetListener.handl eDrop() and
handleDragOver().

"Felix L J Mayer" <felix.mayer@objectaid.com> wrote in message
news:dlg5qi$63h$1@news.eclipse.org...
>I am trying to drag a binary type from a library in the package explorer
>onto my GEF diagram.
>
> When I do that I get the exception below because a DROP_MOVE (instead of a
> DROP_COPY) was initiated. So when I hold down the shift key while
> dragging, everthing works fine. But I don't want to hold down the shift
> key all the time (move doesn't make sense for a binary type from a jar
> anyway).
>
> Does anybody know what to do? Am I asking in the right forum?
>
> org.eclipse.jface.util.Assert$AssertionFailedException: Assertion failed:
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:180)
> at org.eclipse.jface.util.Assert.isTrue(Assert.java:165)
> at
> org.eclipse.jdt.internal.ui.dnd.BasicSelectionTransferDragAd apter.dragFinished(BasicSelectionTransferDragAdapter.java:80 )
> at
> org.eclipse.jdt.internal.ui.dnd.DelegatingDragAdapter.dragFi nished(DelegatingDragAdapter.java:90)
> at org.eclipse.swt.dnd.DNDListener.handleEvent(DNDListener.java :35)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:867)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:852)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:6 60)
> at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:291)
> at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:267)
> at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java :161)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3080)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :2713)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:1699)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:367)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplicatio n.java:103)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:163)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
>
>
Previous Topic:single click vs double click in draw2d
Next Topic:Own Layout Manager ClientArea issue
Goto Forum:
  


Current Time: Thu May 09 15:51:05 GMT 2024

Powered by FUDForum. Page generated in 0.03400 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top