[jbosstools-commits] JBoss Tools SVN: r20666 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Mar 4 09:41:56 EST 2010


Author: scabanovich
Date: 2010-03-04 09:41:56 -0500 (Thu, 04 Mar 2010)
New Revision: 20666

Modified:
   trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5995

Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java	2010-03-04 14:40:26 UTC (rev 20665)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java	2010-03-04 14:41:56 UTC (rev 20666)
@@ -50,8 +50,6 @@
 import org.jboss.tools.jst.web.kb.PageProcessor;
 import org.jboss.tools.jst.web.kb.KbQuery.Type;
 import org.jboss.tools.jst.web.kb.taglib.IAttribute;
-import org.jboss.tools.jst.web.kb.taglib.IComponent;
-import org.jboss.tools.jst.web.kb.taglib.ICustomTagLibComponent;
 import org.w3c.dom.Attr;
 import org.w3c.dom.DOMException;
 import org.w3c.dom.Document;
@@ -126,6 +124,7 @@
 		processor.createContext(getTextViewer(), offset);
         pageContext = processor.getContext();
 		kbQuery = createKbQuery(processor);
+		kbQuery.setMask(true); 
 		kbQueryAttr = createKbQuery(processor);
 	}
 	
@@ -647,19 +646,7 @@
 	}
 	
 	private Map<String, IAttribute> getAttributes() {
-		IComponent[] components = PageProcessor.getInstance().getComponents(kbQuery, pageContext, true);
-		Map<String, IAttribute> map = new HashMap<String, IAttribute>();
-		for (IComponent component: components) {
-			IAttribute[] as = component.getAttributes();
-			for (IAttribute a: as) {
-				String n = a.getName();
-				if(map.containsKey(n) && !(component instanceof ICustomTagLibComponent)) {
-					continue;
-				}
-				map.put(n, a);
-			}
-		}
-		return map;
+		return PageProcessor.getInstance().getAttributesAsMap(kbQuery, pageContext);
 	}
 	
 	//////// XMLPropertyDescriptor



More information about the jbosstools-commits mailing list