Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Making Views as Drop Target
Making Views as Drop Target [message #464982] Wed, 21 March 2007 12:28 Go to next message
Aravindhan Annamalai is currently offline Aravindhan AnnamalaiFriend
Messages: 89
Registered: July 2009
Location: Chennai
Member
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 14:47 Go to previous message
Nathan is currently offline NathanFriend
Messages: 10
Registered: July 2009
Junior Member
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: Fri Sep 20 20:30:50 GMT 2024

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

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

Back to the top