Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 114896

Summary: Assertion failed while copying functions by drag/drop in C/C++ Projects view
Product: [Eclipse Project] Platform Reporter: x y <h614696>
Component: UIAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description x y CLA 2005-11-03 05:40:11 EST
When I copy a function or global variable in the C/C++ projects view from one C
source file to another by drag/drop (with the CTRL key pressed), I get an
assertion failure.

Moving functions/global variables by drag/drop (without the CTRL key pressed)
works ok. Copying and moving files also works ok. The problem occurs on both
Linux-GTK and Windows.

Contents of the .log file:

!SESSION 2005-11-03 10:48:42.253 -----------------------------------------------
eclipse.buildId=I20050627-1435
java.version=1.5.0
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=nl_NL
Command-line arguments:  -os linux -ws gtk -arch x86

!ENTRY org.eclipse.ui 4 4 2005-11-03 10:49:32.730
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 2005-11-03 10:49:32.745
!MESSAGE Assertion failed: 
!STACK 0
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.cdt.internal.ui.dnd.BasicSelectionTransferDragAdapter.dragFinished(BasicSelectionTransferDragAdapter.java:79)
	at
org.eclipse.cdt.internal.ui.dnd.DelegatingDragAdapter.dragFinished(DelegatingDragAdapter.java:87)
	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:1021)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1045)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1030)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:900)
	at org.eclipse.swt.dnd.DragSource.dragEnd(DragSource.java:314)
	at org.eclipse.swt.dnd.DragSource.DragEnd(DragSource.java:204)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4777)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1067)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1158)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2570)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	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)
Comment 1 Dani Megert CLA 2009-01-30 09:55:33 EST
This is not cdt specific.
Comment 2 Dani Megert CLA 2009-01-30 09:56:50 EST

*** This bug has been marked as a duplicate of bug 261865 ***