setDragDetect method [message #647975] |
Mon, 10 January 2011 11:14  |
Eclipse User |
|
|
|
Hi,
I was using the Treeviewer#setDragDetect method in an RCP application and wanted to use it in the RAP application.
But this method doesn't exists.
Is there a descent way to have the same behaviour ? (ie. remove the drag feature from a component).
Thanks,
|
|
|
|
|
Re: setDragDetect method [message #648133 is a reply to message #648101] |
Tue, 11 January 2011 06:25  |
Eclipse User |
|
|
|
On 11.01.2011 10:06, Opfermann C wrote:
> Thank you for your response.
>
> Actually, the setDragDetect method was used with a "false" parameter.
> This is used in some cases to disable the drag behaviour from a control.
Feel free to open an enhancement request if you need a way to 'globally'
disable DND.
In the meanwhile you can use the DragSourceListener#dragStart() event to
prevent dragging.
>
> So, in RAP, there is a method to add the drag (addDragSupport), there is
> nothing to remove the drag feature. (like removeDragSupport).
These APIs aren't specific to RAP, they are provided by JFace.
>
|
|
|
Powered by
FUDForum. Page generated in 0.50110 seconds