Author: akazakov
Date: 2010-10-06 07:59:26 -0400 (Wed, 06 Oct 2010)
New Revision: 25516
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
Log:
https://jira.jboss.org/browse/JBIDE-7264
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2010-10-06
11:55:08 UTC (rev 25515)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/PageContextFactory.java 2010-10-06
11:59:26 UTC (rev 25516)
@@ -574,9 +574,14 @@
elReference.setLength(text.length());
elReference.setStartPosition(offset);
try {
- if(is.size()==1) {
- elReference.setLineNumber(document.getLineOfOffset(elReference.getStartPossitionOfFirstEL())
+ 1);
+ if(Node.TEXT_NODE == node.getNodeType()) {
+ if(is.size()==1) {
+ elReference.setLineNumber(document.getLineOfOffset(elReference.getStartPossitionOfFirstEL())
+ 1);
+ }
}
+ else {
+ elReference.setLineNumber(document.getLineOfOffset(offset) + 1);
+ }
} catch (BadLocationException e) {
WebKbPlugin.getDefault().logError(e);
}