Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » DnD feedback icon
DnD feedback icon [message #208167] Fri, 27 January 2006 17:39
Eclipse UserFriend
Originally posted by: gmittendorferREMOVETHISTEXT.web.de

Hi, I do a DnD onto my GraphicalEditor. If I create my own
TransferDropTargetListener that returns a CreateRequest like in the
example at http://www.eclipse.org/articles/Article-GEF-dnd/GEF-dnd.html
everything works as expected.

If I now create my own Request and to the drag I get a no-drop-allowed
feedback (cursor) shown and can't do a drop. What's wrong? What do I
have to do to get the same feedback cursors as for the CreateRequest?

My code is like this:

class MyTransferDropTargetListener extends
AbstractTransferDropTargetListener {

@Override
protected void updateTargetRequest() {
// set some data to the request (location, ...)
}

@Override
protected Request createTargetRequest() {
// create very simple Request like:
return new Request();
}

}

Regards,

Georg
Previous Topic:Ellipse with Gradient
Next Topic:getContentPane and dealing with different sets of children
Goto Forum:
  


Current Time: Thu Dec 08 16:45:39 GMT 2022

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

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

Back to the top