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 16:38
masha Mising name is currently offline masha Mising name
Messages: 5
Registered: December 2011
Junior Member
I have GraphicalViewer with DiagramDropTargetListener.

public class MyDropTargetListener extends DiagramDropTargetListener {
...
@Override
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]);
objects.add(s);
}
}
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: Sat Aug 30 06:28:53 EDT 2014

Powered by FUDForum. Page generated in 0.01787 seconds