Author: mareshkau
Date: 2011-03-03 05:17:09 -0500 (Thu, 03 Mar 2011)
New Revision: 29463
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java
Log:
https://issues.jboss.org/browse/JBIDE-8115, DnD has been disabled when selected more than
one node.
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java 2011-03-03
09:42:26 UTC (rev 29462)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/dnd/VpeDnD.java 2011-03-03
10:17:09 UTC (rev 29463)
@@ -134,6 +134,7 @@
}
private nsIDOMElement getSelectedElement() {
+ if(vpeController.getXulRunnerEditor().getLastSelectedNodes().size()!=1) return null;
return vpeController.getXulRunnerEditor().getSelectedElement();
}