Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » issue with org.eclipse.swt.dnd.TextTransfer DND on Linux
issue with org.eclipse.swt.dnd.TextTransfer DND on Linux [message #925539] Thu, 27 September 2012 20:38
maria  finkelstein is currently offline maria finkelsteinFriend
Messages: 19
Registered: December 2011
Location: New York, NY
Junior Member
I have GraphicalViewer with DiagramDropTargetListener.

public class MyDropTargetListener extends DiagramDropTargetListener {
protected List<?> getObjectsBeingDropped() {
TransferData[] data = getCurrentEvent().dataTypes;
List<String> objects = new ArrayList<String>();

for (int i=0; i<data.length; i++) {
if (TextTransfer.getInstance().isSupportedType(data[i])) {
// this call returns null on Linux box
String s = (String) TextTransfer.getInstance().nativeToJava(data[i]);
return objects;

Bundle-Version: 3.5.2.v3557f
Export-Package: org.eclipse.swt.internal.accessibility.gtk;

any work around for Linux?
Previous Topic:Which is the latest Xulrunner version supported in SWT version X ?
Next Topic:Shell full screen support for OS X >= 10.7
Goto Forum:

Current Time: Thu Sep 24 09:35:29 GMT 2020

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

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

Back to the top