Cannot drag from SWT, drop on Swing/AWT in certain linux configurations [message #445447] |
Fri, 05 November 2004 21:06 |
Eddie Galvez 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 |
Veronika Irvine 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
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03746 seconds