Bug 198243

Summary: SWTException: Data does not have correct format for type if cancel drop
Product: [WebTools] WTP Common Tools Reporter: Benno Baumgartner <benno.baumgartner>
Component: Snippets FrameworkAssignee: wst.common <wst.common-inbox>
Status: NEW --- QA Contact: Konstantin Komissarchik <konstantin>
Severity: normal    
Priority: P3 CC: buzz-dee, thatnitind
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Benno Baumgartner CLA 2007-07-30 07:00:55 EDT
In the snippets view
1. Customize...
2. New Item
3. New variable
4. Give it the name 'variable'
5. As template pattern use '${variable}'
6. OK
7. DnD template into an editor
8. Cancel 'Insert Template' dialog
Is:
org.eclipse.swt.SWTException: Data does not have correct format for type
	at org.eclipse.swt.dnd.DND.error(DND.java:257)
	at org.eclipse.swt.dnd.DND.error(DND.java:208)
	at org.eclipse.swt.dnd.TextTransfer.javaToNative(TextTransfer.java:61)
	at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:424)
	at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:390)
	at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:252)
	at org.eclipse.swt.internal.ole.win32.COMObject.callback3(COMObject.java:92)
	at org.eclipse.swt.internal.ole.win32.COM.VtblCall(Native Method)
	at org.eclipse.swt.internal.ole.win32.IDataObject.GetData(IDataObject.java:25)
	at org.eclipse.swt.dnd.TextTransfer.nativeToJava(TextTransfer.java:121)
	at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:438)
	at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:253)
	at org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:119)
	at org.eclipse.swt.internal.ole.win32.COM.DoDragDrop(Native Method)
	at org.eclipse.swt.dnd.DragSource.drag(DragSource.java:322)
	at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:282)
	at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:166)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3688)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3299)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
	at org.eclipse.core.launcher.Main.main(Main.java:30)
 

Sorry, not sure which component.