Author: scabanovich
Date: 2010-12-09 09:41:47 -0500 (Thu, 09 Dec 2010)
New Revision: 27280
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/dnd/JSPPaletteInsertHelper.java
Log:
JBIDE-5661
https://issues.jboss.org/browse/JBIDE-5661
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/dnd/JSPPaletteInsertHelper.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/dnd/JSPPaletteInsertHelper.java 2010-12-09
14:41:00 UTC (rev 27279)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/dnd/JSPPaletteInsertHelper.java 2010-12-09
14:41:47 UTC (rev 27280)
@@ -113,6 +113,10 @@
if(k >= 0) {
return text.substring(0, k + 2) + prefix + ":" + text.substring(k + 2);
//$NON-NLS-1$
}
+ k = text.toLowerCase().indexOf("${" + tagname.toLowerCase()); //$NON-NLS-1$
+ if(k >= 0) {
+ return text.substring(0, k + 2) + prefix + ":" + text.substring(k + 2);
//$NON-NLS-1$
+ }
return text;
}