Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mac OS X drag and drop
Mac OS X drag and drop [message #445481] Sat, 06 November 2004 15:50 Go to next message
Eclipse UserFriend
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 #445564 is a reply to message #445481] Mon, 08 November 2004 14:37 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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
Re: Mac OS X drag and drop [message #445649 is a reply to message #445564] Mon, 08 November 2004 15:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michaelh.mjhenderson.com

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
Re: Mac OS X drag and drop [message #445653 is a reply to message #445649] Mon, 08 November 2004 18:28 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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
>
Previous Topic:JavaUI.createTypeDialog
Next Topic:Enabling a menu item after disabling it through xml
Goto Forum:
  


Current Time: Thu Apr 25 10:05:48 GMT 2024

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

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

Back to the top