Mac OS X drag and drop [message #445481] |
Sat, 06 November 2004 10:50  |
Eclipse User |
|
|
|
Originally posted by: michaelh.mjhenderson.com
Hi,
I have a plugin which implements drag and drop using LocalTransfer.
It works fine on Win32 and Linux but not on`Mac OS X.
I'm using Eclipse 3.01 on all platforms. On Mac OS X with debug statements
I can see that dragStart() is called on my drag dource control. But no drop
is detected or called on my drop target.
I'm using the org.eclipse.core.runtime.adapters extension in my plugin to
add the drop target listener to an editor from another plugin and I can see
from my debugging output that my listern factory and my listener instance
are created. Yet no drop target methods are called.
Bugzilla shows Mac OS X drag and drop problems to have been fixed earlier
this year.
Does anyone have a similar problem, or a workaround?
Thanks,
Mike
|
|
|
|
|
Re: Mac OS X drag and drop [message #445653 is a reply to message #445649] |
Mon, 08 November 2004 13:28  |
Eclipse User |
|
|
|
I shall make all other platforms stop working if no data is provided in the
dragSetData because that is the correct behaviour - in 3.1 we are focusing
on consistency and I will enforce this behaviour. The
LocalSelectionTransfer example you found is wrong. Do you know where you
found it? If it is in eclipse documentation I will get it fixed.
"Michael Henderson" <michaelh@mjhenderson.com> wrote in message
news:cmo5h3$c7j$1@eclipse.org...
> Thank you, that works. Why the platform difference. I followed an example
> i
> found on the web with data set in the dragStart() ,using
> LocalSelectionTransfer and it works fine on Win an Linux.
>
>
> Mike
>
> Veronika Irvine wrote:
>
>> Do you provide any data in the dragSetData event notification on the
>> DragSource? If not, you will not be able to perform a drag and drop on
>> Mac OSX.
>>
>> "Michael Henderson" <michaelh@mjhenderson.com> wrote in message
>> news:cmitlq$jvj$1@eclipse.org...
>>> Hi,
>>>
>>> I have a plugin which implements drag and drop using LocalTransfer.
>>> It works fine on Win32 and Linux but not on`Mac OS X.
>>>
>>> I'm using Eclipse 3.01 on all platforms. On Mac OS X with debug
>>> statements I can see that dragStart() is called on my drag dource
>>> control. But no drop
>>> is detected or called on my drop target.
>>>
>>> I'm using the org.eclipse.core.runtime.adapters extension in my plugin
>>> to
>>> add the drop target listener to an editor from another plugin and I can
>>> see
>>> from my debugging output that my listern factory and my listener
>>> instance
>>> are created. Yet no drop target methods are called.
>>>
>>> Bugzilla shows Mac OS X drag and drop problems to have been fixed
>>> earlier
>>> this year.
>>>
>>> Does anyone have a similar problem, or a workaround?
>>>
>>> Thanks,
>>> Mike
>
|
|
|
Powered by
FUDForum. Page generated in 0.03546 seconds