Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » drag & drop of url link
drag & drop of url link [message #648184] Tue, 11 January 2011 16:48 Go to next message
Eclipse UserFriend
Originally posted by: jdevgl.gmail.com

Hi =)

I would like to know if it is possible to drag'n'drop an url link (from
a web browser) into an swt tree and how can one do that?

Thank you :)
Re: drag & drop of url link [message #648308 is a reply to message #648184] Wed, 12 January 2011 11:02 Go to previous message
Lakshmi ShanmugamFriend
Messages: 274
Registered: July 2009
Location: India
Senior Member
Hi,

Here is an example Snippet --> Snippet284.java
This drags the URL between labels. You can modify the snippet to use a Browser as the DragSource instead of Label and use Tree as the DropTarget.
Also see the Drag and Drop example which does drag and drop between different controls --> DNDExample.java

HTH,
Lakshmi


Lakshmi P Shanmugam
Previous Topic:Problems with scroll synchronization of 2 trees
Next Topic:How to Crop/Trim Image/ImageData
Goto Forum:
  


Current Time: Sun Dec 21 01:16:02 GMT 2014

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

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