[jbosstools-commits] JBoss Tools SVN: r43892 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/dnd.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Sep 20 20:21:33 EDT 2012


Author: scabanovich
Date: 2012-09-20 20:21:33 -0400 (Thu, 20 Sep 2012)
New Revision: 43892

Modified:
   trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/dnd/ModelTransfer.java
Log:
JBIDE-12648
https://issues.jboss.org/browse/JBIDE-12648


Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/dnd/ModelTransfer.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/dnd/ModelTransfer.java	2012-09-20 23:58:44 UTC (rev 43891)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/dnd/ModelTransfer.java	2012-09-21 00:21:33 UTC (rev 43892)
@@ -33,9 +33,9 @@
 	}
 
 	protected void javaToNative (Object data, TransferData transferData){
-		if (data == null) return;
+		if (!(data instanceof String)) return;
 		try {
-			String realData = (String)data;
+			String realData = data.toString();
 ///			String[] realData = (String[])data;
 			ByteArrayOutputStream out = new ByteArrayOutputStream();
 			DataOutputStream dataOut = new DataOutputStream(out);



More information about the jbosstools-commits mailing list