ViewerDropAdapter [message #295097] |
Wed, 23 November 2005 09:21  |
Eclipse User |
|
|
|
Originally posted by: osipov.appliedtech.ru
Hi, everybody!
I use ViewerDropAdapter to add drop support to my view.But if I try to drop
for the first time no drop operation is available (I see this crossed circle
no matter where I am trying to drop) until I press CTRL, only then the
behaviour of drop seems to be ok. But how do I switch to move operation? In
normal situation I use CTRL to switch between copy and move. But how do I do
it here?
And how to I start withh copy operation, not with NONE operation.
thanks a lot in advance for your help.
|
|
|
|
|
Re: ViewerDropAdapter [message #296650 is a reply to message #296638] |
Thu, 29 December 2005 03:09  |
Eclipse User |
|
|
|
Originally posted by: osipov.appliedtech.ru
Anyway, Paul, Now it works the way it should be.
What I did wrong is - in my drag source I did not add MOVE operation, just
copy.
Now what I am doing is just overload operation dragOver and when drop is not
allowed I set
event.detail = DND.DROP_NONE;
otherwise I am doing nothing and it works fine.
hope this helps.
> Peter --
>
> Sorry for slow reply (your answer went to my webmail, which I now rarely
use, since it has gotten
> picked up by the spammers).
>
> > I saved the problem in a way. Overloaded fuction
> > public void dragOver(DropTargetEvent event)
> > {
> > event.detail = DND.DROP_NONE;
> > if (canCopy(event))
> > {
> > event.detail = DND.DROP_COPY;
> > }
> > super.dragOver(event);
> > }
> > Though it just works for copy - mouse pointer is never changed to
> > "move" no matter what I do.
> >
>
> Right, makes sense. I have made some progress, now posted to the bug.
>
> Paul
|
|
|
Powered by
FUDForum. Page generated in 0.02475 seconds