Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Cannot drag from SWT, drop on Swing/AWT in certain linux configurations
Cannot drag from SWT, drop on Swing/AWT in certain linux configurations [message #445447] Fri, 05 November 2004 21:06 Go to next message
Eddie Galvez is currently offline Eddie GalvezFriend
Messages: 103
Registered: July 2009
Senior Member
Anyone have any idea why I would be having trouble getting DnD to work on
certain flavors of linux (looks like its related to the GTK version, or the
window manager...):

What we are currently doing is:
A drag that starts from an SWT widget, using the TextTransfer type.
We have drag/drop handler on some swing/awt components, which are able to
get the drag event and handle the drop, using DataFlavor.stringFlavor.
However, this works fine on windows, but we have seen some configurations of
linux (in particular, when running on Fedora core 2) that simply never get a
drag event on the awt/swing component, and therefore the drag and drop, that
works wonders for the others, fails completely (our WM doesn't even draw a
little "plus" symbol signifying that you can drop something there). Again,
the difference manifests itself at the awt/swing level, where no dragEnter
event is received on the component of interest. Yet simply go to windows (or
even another linux machine!) and it usually works.

Any ideas?
Thanks,
Eddie
Re: Cannot drag from SWT, drop on Swing/AWT in certain linux configurations [message #445569 is a reply to message #445447] Mon, 08 November 2004 14:52 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Each platform has a native data type for text. Some platforms have multiple
data types for the same thing and some platforms support free conversion
from one data type to another.

Please enter a bug report against Platform SWT and I will look into what
native data types are expected by the DataFlavor.stringFlavor on Linux.

"Eddie Galvez" <eddie@streambase.com> wrote in message
news:cmgpvg$dbn$1@eclipse.org...
> Anyone have any idea why I would be having trouble getting DnD to work on
> certain flavors of linux (looks like its related to the GTK version, or
> the window manager...):
>
> What we are currently doing is:
> A drag that starts from an SWT widget, using the TextTransfer type.
> We have drag/drop handler on some swing/awt components, which are able to
> get the drag event and handle the drop, using DataFlavor.stringFlavor.
> However, this works fine on windows, but we have seen some configurations
> of linux (in particular, when running on Fedora core 2) that simply never
> get a drag event on the awt/swing component, and therefore the drag and
> drop, that works wonders for the others, fails completely (our WM doesn't
> even draw a little "plus" symbol signifying that you can drop something
> there). Again, the difference manifests itself at the awt/swing level,
> where no dragEnter event is received on the component of interest. Yet
> simply go to windows (or even another linux machine!) and it usually
> works.
>
> Any ideas?
> Thanks,
> Eddie
>
>
Previous Topic:Scrollable List
Next Topic:Is Combo supported in first column of TableTreeViewer?
Goto Forum:
  


Current Time: Fri Apr 26 06:47:48 GMT 2024

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

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

Back to the top