Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsCannot instantiate the type TemplateTransferDropTargetListener
https://www.eclipse.org/forums/index.php/mv/msg/75610/236075/#msg_236075
Originally posted by: neliacatarina.portugalmail.pt
Hi
In my code I have this line:
getViewer().addDropTargetListener((TransferDropTargetListene r) new TemplateTransferDropTargetListener(getViewer()));
And is working fine since the beggining but now, for some reason, it started complaining that it can't instanceat it. I think maybe it's a conflict with it's super org.eclipse.gef.dnd.AbstractTransferDropTargetListener.
It thinks it is an abstract class and tells me I can't instanceate it.
Also, I have
getGraphicalViewer().addDropTargetListener(new FlowTemplateTransferDropTargetListener(getGraphicalViewer()) );
And it tells me method addDropTargetListener(TransferDropTargetListener) from the type EditPartViewer is deprecated...
How do I fix this?
Thanks]]>2007-06-21T09:52:28-00:00