Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Making Views as Drop Target
Making Views as Drop Target [message #464982] Wed, 21 March 2007 08:28 Go to next message
Eclipse UserFriend
Hi All,
How to make our views as the drop target in our application
workbench.
Re: Making Views as Drop Target [message #465076 is a reply to message #464982] Thu, 22 March 2007 10:47 Go to previous message
Eclipse UserFriend
Hi

you need to add dropSupport to the views you wish to use as a target. i.e:

viewer.addDropSupport(DND.DROP_COPY | DND.DROP_MOVE, transfers, new MyViewerDropListener(viewer));

Transfers is an array containing all the transfer types the view supports, and MyViewerDropListener is a drop listener that listens for a drop event and tells the view how to respond.

For more information see:
http://www.eclipse.org/articles/Article-Workbench-DND/drag_d rop.html
Previous Topic:Open an editor and specify the line of the document
Next Topic:Displaying Hour Glass
Goto Forum:
  


Current Time: Sun Aug 31 05:54:50 EDT 2025

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

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

Back to the top