Author: scabanovich
Date: 2011-06-29 19:01:54 -0400 (Wed, 29 Jun 2011)
New Revision: 32482
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/model/helpers/TLDToPaletteHelper.java
Log:
JBIDE-9279
https://issues.jboss.org/browse/JBIDE-9279
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/model/helpers/TLDToPaletteHelper.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/model/helpers/TLDToPaletteHelper.java 2011-06-29
23:01:15 UTC (rev 32481)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/tld/model/helpers/TLDToPaletteHelper.java 2011-06-29
23:01:54 UTC (rev 32482)
@@ -90,11 +90,12 @@
for (int i = 0; i < as.length; i++) {
if(!TLDUtil.isAttribute(as[i])) continue;
if(!isRequired(as[i])) continue;
-
sb.append("<b>").append(as[i].getAttributeValue("name")).append("</b>");
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+
sb.append("<b>").append(as[i].getAttributeValue(XModelObjectConstants.ATTR_NAME)).append("</b>");
//$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
++k;
if(k < as.length) sb.append(", "); //$NON-NLS-1$
}
for (int i = 0; i < as.length; i++) {
+ if(!TLDUtil.isAttribute(as[i])) continue;
if(isRequired(as[i])) continue;
sb.append(as[i].getAttributeValue(XModelObjectConstants.ATTR_NAME));
++k;