Author: vyemialyanchyk
Date: 2007-12-14 07:35:05 -0500 (Fri, 14 Dec 2007)
New Revision: 5300
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-788
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 2007-12-14
12:34:08 UTC (rev 5299)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPPropertySourceAdapter.java 2007-12-14
12:35:05 UTC (rev 5300)
@@ -38,6 +38,7 @@
import org.jboss.tools.jst.jsp.JspEditorPlugin;
import org.jboss.tools.jst.jsp.contentassist.RedHatHtmlContentAssistProcessor;
import org.jboss.tools.jst.jsp.editor.IVisualController;
+import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditorPageContext;
import org.w3c.dom.Attr;
import org.w3c.dom.DOMException;
import org.w3c.dom.Document;
@@ -77,6 +78,12 @@
public void setTarget(INodeNotifier target) {
if(fNode == target) return;
fNode = (target instanceof Node) ? (Node) target : null;
+ // BEGIN
+ JSPTextEditorPageContext pageContext =
(JSPTextEditorPageContext)valueHelper.getTaglibManager();
+ if (null != pageContext) {
+ pageContext.setReferenceNode(fNode);
+ }
+ // END
if (fNode instanceof IDOMNode) {
Document ownerDocument = fNode.getOwnerDocument();
if (ownerDocument == null && fNode instanceof Document) {