Author: vrubezhny
Date: 2009-06-16 09:12:43 -0400 (Tue, 16 Jun 2009)
New Revision: 15986
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
Log:
JBIDE-2808: Improve/refactor org.jboss.tools.common.kb plugin.
The skeleton to prompt for the EL in text regions is updated
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-16
12:20:01 UTC (rev 15985)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/AbstractXMLContentAssistProcessor.java 2009-06-16
13:12:43 UTC (rev 15986)
@@ -688,7 +688,7 @@
} else if (n instanceof IDOMText) {
text = ((IDOMText)n).getNodeValue();
region = ((IDOMText)n).getFirstStructuredDocumentRegion();
- startOffset = ((IndexedRegion)((IDOMAttr)n).getOwnerElement()).getStartOffset();
+ startOffset = ((IDOMText)n).getStartOffset();
} else {
// The EL may appear only in TEXT and ATTRIBUTE VALUE types of node
return null;