Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » [DND] TransferDropTargetListener should not be deprecated
[DND] TransferDropTargetListener should not be deprecated [message #559281] Thu, 16 September 2010 05:16 Go to next message
Christophe Fondacci is currently offline Christophe Fondacci
Messages: 95
Registered: July 2009
Location: Paris
Member
Hello all,

I am using GEF 3.5.2 and working with drag / drop connection with LocalSelectionTransfer.

I would like to point out that the class org.eclipse.gef.dnd.TransferDropTargetListener is flagged as deprecated and the javadoc says :
@deprecated use org.eclipse.jface.util.TransferDropTargetListener instead


But this is not true, as using the JFace interface does not work at all. Even if the GEF interface is empty, I suspect that there are still references to the GEF interface in the GEF code because using the JFace interface does not work at all.

Would it be possible to :
* Either make sure that the JFace interface is handled properly in GEF
* Remove the deprecated tag if there is no time to fix this as it is very confusing for implementors that we should still use the deprecated interface.

Should I file a bug for this or is it a known bug (couldn't find it).

Thank you,
Christophe
http://www.nextep-softwares.com
Re: [DND] TransferDropTargetListener should not be deprecated [message #615744 is a reply to message #559281] Tue, 21 September 2010 18:15 Go to previous message
h1055071 is currently offline h1055071
Messages: 335
Registered: July 2009
Senior Member
On 16/09/2010 10:17, Christophe Fondacci wrote:
> Hello all,
>
> I am using GEF 3.5.2 and working with drag / drop connection with
> LocalSelectionTransfer.
> I would like to point out that the class
> org.eclipse.gef.dnd.TransferDropTargetListener is flagged as deprecated
> and the javadoc says :
>
> @deprecated use org.eclipse.jface.util.TransferDropTargetListener instead
>
>
> But this is not true, as using the JFace interface does not work at all.
> Even if the GEF interface is empty, I suspect that there are still
> references to the GEF interface in the GEF code because using the JFace
> interface does not work at all.
>
> Would it be possible to :
> * Either make sure that the JFace interface is handled properly in GEF
> * Remove the deprecated tag if there is no time to fix this as it is
> very confusing for implementors that we should still use the deprecated
> interface.
>
> Should I file a bug for this or is it a known bug (couldn't find it).
>
> Thank you,
> Christophe
> http://www.nextep-softwares.com
>

Use org.eclipse.gef.dnd.AbstractTransferDropTargetListener
Previous Topic:Zoom funtion in a View?
Next Topic:Rotate Layer
Goto Forum:
  


Current Time: Thu Aug 28 07:31:50 EDT 2014

Powered by FUDForum. Page generated in 0.02084 seconds