Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Drag & Drop in CDO Sessions View fails
icon5.gif  [CDO] Drag & Drop in CDO Sessions View fails [message #1016723] Thu, 07 March 2013 13:43 Go to next message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
Hi,

Does drag&drop works in the CDO Session View? Cause I'm trying to move a CDO Resource to a CDO Resource Folder and the following error occurs:
org.eclipse.swt.SWTException: Data does not have correct format for type
	at org.eclipse.swt.dnd.DND.error(DND.java:276)
	at org.eclipse.swt.dnd.DND.error(DND.java:227)
	at org.eclipse.swt.dnd.FileTransfer.javaToNative(FileTransfer.java:68)
	at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:472)
	at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:436)
	at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:259)
	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.Transfer.getData(Transfer.java:44)
	at org.eclipse.swt.dnd.FileTransfer.nativeToJava(FileTransfer.java:120)
	at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:443)
	at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
	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:363)
	at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
	at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	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:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)


(Using 4.2-M5 (S20130205-0640) version)

Thanks,
Marc
Re: [CDO] Drag & Drop in CDO Sessions View fails [message #1016731 is a reply to message #1016723] Thu, 07 March 2013 13:51 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5587
Registered: July 2009
Senior Member
Am 07.03.2013 14:43, schrieb Marc Gil:
> Hi,
>
> Does drag&drop works in the CDO Session View? Cause I'm trying to move a CDO Resource to a CDO Resource Folder and the
> following error occurs:
>
> org.eclipse.swt.SWTException: Data does not have correct format for type
I fear we didn't implement "intra repository drag & drop", yet. Just for transfers between entire transfer systems, such
as repo->workspace, etc.

Please submit an enhancement request, but I know that I will not come to it very soon.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


> at org.eclipse.swt.dnd.DND.error(DND.java:276)
> at org.eclipse.swt.dnd.DND.error(DND.java:227)
> at org.eclipse.swt.dnd.FileTransfer.javaToNative(FileTransfer.java:68)
> at org.eclipse.swt.dnd.DragSource.GetData(DragSource.java:472)
> at org.eclipse.swt.dnd.DragSource.access$7(DragSource.java:436)
> at org.eclipse.swt.dnd.DragSource$4.method3(DragSource.java:259)
> 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.Transfer.getData(Transfer.java:44)
> at org.eclipse.swt.dnd.FileTransfer.nativeToJava(FileTransfer.java:120)
> at org.eclipse.swt.dnd.DropTarget.Drop(DropTarget.java:443)
> at org.eclipse.swt.dnd.DropTarget$3.method6(DropTarget.java:258)
> 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:363)
> at org.eclipse.swt.dnd.DragSource.access$0(DragSource.java:289)
> at org.eclipse.swt.dnd.DragSource$1.handleEvent(DragSource.java:172)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 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:622)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
>
>
> (Using 4.2-M5 (S20130205-0640) version)
>
> Thanks,
> Marc
Re: [CDO] Drag & Drop in CDO Sessions View fails [message #1016737 is a reply to message #1016731] Thu, 07 March 2013 14:04 Go to previous messageGo to next message
Marc Gil is currently offline Marc GilFriend
Messages: 81
Registered: July 2009
Member
Hi Eike,

Here is the ticket in bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=402653

I would like to contribute, but I don't really know how to implement it. If I get more information and I know how to add this support, I will send a patch, ok?

Thanks for your answer,
Marc
Re: [CDO] Drag & Drop in CDO Sessions View fails [message #1016822 is a reply to message #1016737] Thu, 07 March 2013 19:49 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 5587
Registered: July 2009
Senior Member
Am 07.03.2013 15:04, schrieb Marc Gil:
> Hi Eike,
>
> Here is the ticket in bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=402653
>
> I would like to contribute, but I don't really know how to implement it. If I get more information and I know how to
> add this support, I will send a patch, ok?
That would be great! I've given some start pointers on the bug.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Previous Topic:can't find org.eclipse.emf.edit.ui.EditorEntryPoint for GWT editor
Next Topic:[CDO] Resolve cross references for new objects that has not been committed yet
Goto Forum:
  


Current Time: Thu Dec 18 19:47:13 GMT 2014

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

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