Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Safe to call setTransfer multiple times on a DragSource?
Safe to call setTransfer multiple times on a DragSource? [message #456225] Thu, 26 May 2005 20:13 Go to next message
Craig Setera is currently offline Craig SeteraFriend
Messages: 54
Registered: July 2009
Member
I have a TreeViewer full of a variety of items. Dependent on the type
of the item, I'd like be able to offer up different types of transfer
types to restrict whether the object can be transferred to the
platform's file system or not. Is it safe to call setTransfer during
every dragStart call? Will it have the intended effect of changing the
available transfer types for that particular drag?

Thanks,
Craig
Re: Safe to call setTransfer multiple times on a DragSource? [message #456310 is a reply to message #456225] Mon, 30 May 2005 18:00 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Yes, you may call setTransfer in the dragStart event and it will affect the
drag that is just starting.


"Craig Setera" <csetera@spss.com> wrote in message
news:d75arl$qqo$1@news.eclipse.org...
>I have a TreeViewer full of a variety of items. Dependent on the type of
>the item, I'd like be able to offer up different types of transfer types to
>restrict whether the object can be transferred to the platform's file
>system or not. Is it safe to call setTransfer during every dragStart call?
>Will it have the intended effect of changing the available transfer types
>for that particular drag?
>
> Thanks,
> Craig
Previous Topic:Dnd Problems on a Tree
Next Topic:Updating a widget from a background running thread
Goto Forum:
  


Current Time: Wed Sep 18 20:29:45 GMT 2024

Powered by FUDForum. Page generated in 0.04298 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top