DropTargetListener version [message #200770] |
Thu, 27 October 2005 09:41 |
Eclipse User |
|
|
|
Originally posted by: wjancz.\/\/asko.pl(change \/\/ with w)
Hi. This question is especially for Randy and Pratik.
I am using GEF 3.1.
I am adding into my GraphicalViewer class a listener which accepts dropping
elements.
I extends an AbstractTransferDropTargetListener class which implements
deprecated interface TransferDropTargetListener.
I hvae noticed that Eclipse warn me about using deprecated method.
Why AbstractTransferDropTargetListener uses deprecated interface when the
deprecate reason tells:
"@deprecated use org.eclipse.jface.util.TransferDropTargetListener instead".
So why You decided not to use org.eclipse.jface.util... instead ?
Or maybe higher version of GEF fixes this ?
Anyway... :) Thank for GEF! :)
...::WojT::..
|
|
|
Re: DropTargetListener version [message #200806 is a reply to message #200770] |
Thu, 27 October 2005 15:47 |
Eclipse User |
|
|
|
Originally posted by: none.unknown.com
"WojT" <wjancz@\/\/asko.pl(change \/\/ with w)> wrote in message
news:djq7bj$7kf$1@news.eclipse.org...
> Hi. This question is especially for Randy and Pratik.
> I am using GEF 3.1.
> I am adding into my GraphicalViewer class a listener which accepts
dropping
> elements.
> I extends an AbstractTransferDropTargetListener class which implements
> deprecated interface TransferDropTargetListener.
> I hvae noticed that Eclipse warn me about using deprecated method.
>
> Why AbstractTransferDropTargetListener uses deprecated interface when the
> deprecate reason tells:
> "@deprecated use org.eclipse.jface.util.TransferDropTargetListener
instead".
> So why You decided not to use org.eclipse.jface.util... instead ?
> Or maybe higher version of GEF fixes this ?
For backward compatibility. ATDTL was implementing GEF's
TransferDropTargetListener before it was deprecated, and we can't just
change that now since it would break API for clients casting it to that
class.
>
> Anyway... :) Thank for GEF! :)
>
> ..::WojT::..
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03049 seconds