Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Drag&Drop question
Drag&Drop question [message #157773] Fri, 12 November 2004 11:28 Go to next message
Eclipse UserFriend
Originally posted by: boris.bokowski.de

Hi,

Is it possible to turn a drag handled by a DragEditPartsTracker into a
(native) drag and drop operation?

In my GEF editor, I want to be able to move shapes around, but at the same
time, I would like to be able to drag shapes out of my editor into a drop
target, for example a JFace table viewer.

My current solution requires the user to press the shift key before starting
a drag&drop operation. If you implement DragSourceListener.dragStart() such
that it sets event.doit to false when the shift key is not pressed, the drag
will be handled as a normal move request. I'm not very happy with this
solution since it's not intuitive for the users to press the shift key
before starting a cross-editor drag.

Any ideas?

Thanks,
Boris.
Re: Drag&Drop question [message #157821 is a reply to message #157773] Fri, 12 November 2004 16:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

You can use native DND all the time. You will be restricted to DND
limitations, for example, the cursor cannot be controlled.

At least on Motif the users can just press the middle mouse button ;-)


"Boris Bokowski" <boris@bokowski.de> wrote in message
news:cn26mv$53t$1@eclipse.org...
> Hi,
>
> Is it possible to turn a drag handled by a DragEditPartsTracker into a
> (native) drag and drop operation?
>
> In my GEF editor, I want to be able to move shapes around, but at the same
> time, I would like to be able to drag shapes out of my editor into a drop
> target, for example a JFace table viewer.
>
> My current solution requires the user to press the shift key before
starting
> a drag&drop operation. If you implement DragSourceListener.dragStart()
such
> that it sets event.doit to false when the shift key is not pressed, the
drag
> will be handled as a normal move request. I'm not very happy with this
> solution since it's not intuitive for the users to press the shift key
> before starting a cross-editor drag.
>
> Any ideas?
>
> Thanks,
> Boris.
>
>
Re: Drag&Drop question [message #157865 is a reply to message #157821] Fri, 12 November 2004 18:33 Go to previous message
Eclipse UserFriend
Originally posted by: boris.bokowski.de

Can I still show feedback (the blueish rectangles) while dragging within the
GEF editor? If yes, what would be the appropriate way to do this, or is
there an example which does this already?

Thanks,
Boris.

"Randy Hudson" <none@us.ibm.com> wrote:
> You can use native DND all the time. You will be restricted to DND
> limitations, for example, the cursor cannot be controlled.
>
> At least on Motif the users can just press the middle mouse button ;-)
>
>
> "Boris Bokowski" <boris@bokowski.de> wrote in message
> news:cn26mv$53t$1@eclipse.org...
>> Hi,
>>
>> Is it possible to turn a drag handled by a DragEditPartsTracker into a
>> (native) drag and drop operation?
>>
>> In my GEF editor, I want to be able to move shapes around, but at the
>> same
>> time, I would like to be able to drag shapes out of my editor into a drop
>> target, for example a JFace table viewer.
>>
>> My current solution requires the user to press the shift key before
> starting
>> a drag&drop operation. If you implement DragSourceListener.dragStart()
> such
>> that it sets event.doit to false when the shift key is not pressed, the
> drag
>> will be handled as a normal move request. I'm not very happy with this
>> solution since it's not intuitive for the users to press the shift key
>> before starting a cross-editor drag.
>>
>> Any ideas?
>>
>> Thanks,
>> Boris.
>>
>>
>
>
Previous Topic:obscure minor bug in PaletteStack.move / PaletteCustomizer
Next Topic:Plugin available: GEF to Windows clipboard in enhanced metafile format
Goto Forum:
  


Current Time: Thu Mar 28 23:07:46 GMT 2024

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

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

Back to the top