[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Drag&Drop question

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@xxxxxxxxxx> 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@xxxxxxxxxxx> wrote in message
> news:cn26mv$53t$1@xxxxxxxxxxxxxx
>> 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.
>>
>>
>
>