Drag&Drop question [message #157773] |
Fri, 12 November 2004 11:28 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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.
>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04701 seconds