[jbosstools-commits] JBoss Tools SVN: r20665 - trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Mar 4 09:40:27 EST 2010


Author: scabanovich
Date: 2010-03-04 09:40:26 -0500 (Thu, 04 Mar 2010)
New Revision: 20665

Modified:
   trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5995

Modified: trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java	2010-03-04 14:17:57 UTC (rev 20664)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageProcessor.java	2010-03-04 14:40:26 UTC (rev 20665)
@@ -191,4 +191,18 @@
 		}
 		return EMPTY_ATTRIBUTE_ARRAY;
 	}
+
+	public Map<String, IAttribute> getAttributesAsMap(KbQuery query, IPageContext context) {
+		IAttribute[] as = getAttributes(query, context);
+		Map<String, IAttribute> map = new HashMap<String, IAttribute>();
+		for (IAttribute a: as) {
+			String n = a.getName();
+			if(map.containsKey(n) && !(a instanceof CustomTagLibAttribute)) {
+				continue;
+			}
+			map.put(n, a);
+		}
+		return map;
+	}
+
 }
\ No newline at end of file



More information about the jbosstools-commits mailing list