Drag-n-Drop - can it NOT display the insertion bar in the target? [message #778393] |
Thu, 12 January 2012 13:23  |
Eclipse User |
|
|
|
When dragging to a tree (or table), the system shows the insertion bar when the drop point is between nodes.
I have a case where this makes no sense,as you can NOT drop between nodes, only on nodes.
So, is there any way to prevent the insertion bar from being displayed?
(Yes, I don't allow the drop in my validateDrop() method, but it still shows the insertion bar.)
|
|
|
|
|
|
|
Re: Drag-n-Drop - can it NOT display the insertion bar in the target? [message #779840 is a reply to message #778393] |
Mon, 16 January 2012 11:43  |
Eclipse User |
|
|
|
Yes! That was it. I'd missed those 2 methods when digging through the docs. Frankly, it's often unclear to me which object is controlling whatever feature I'm looking for, so I don't always look in the correct set of docs. (and google search completely failed me this time.)
I added:
setFeedbackEnabled(false);
setSelectionFeedbackEnabled(true);
To the Drop Adapter constructor, and it works just as I need.
Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.13337 seconds