Author: vyemialyanchyk
Date: 2007-12-14 07:36:33 -0500 (Fri, 14 Dec 2007)
New Revision: 5301
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.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/ValueHelper.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java 2007-12-14
12:35:05 UTC (rev 5300)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/ValueHelper.java 2007-12-14
12:36:33 UTC (rev 5301)
@@ -96,11 +96,8 @@
IEditorPart editor =
ModelUIPlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
if(!(editor instanceof JSPMultiPageEditor)) return false;
JSPTextEditor jspEditor = ((JSPMultiPageEditor)editor).getJspEditor();
- IVisualEditor v = ((JSPMultiPageEditor)editor).getVisualEditor();
- if(v == null) return false;
- IVisualController c = v.getController();
- if(c == null) return false;
- pageContext = c.getPageContext();
+ // vitali: new version - here we use original org.jboss.tools.jst.jsp this plugin page
context
+ pageContext = jspEditor.getPageContext();
editorInput = jspEditor.getEditorInput();
wtpTextJspKbConnector = jspEditor.getWTPTextJspKbConnector();