Author: akazakov
Date: 2009-12-15 06:37:27 -0500 (Tue, 15 Dec 2009)
New Revision: 19273
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ModelProposalType.java
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ResourcePathProposalType.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5467
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ModelProposalType.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ModelProposalType.java 2009-12-15
11:08:41 UTC (rev 19272)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ModelProposalType.java 2009-12-15
11:37:27 UTC (rev 19273)
@@ -30,6 +30,7 @@
@Override
protected void init(IPageContext context) {
provider = WebPromptingProvider.getInstance();
+ xModel = null;
IModelNature nature =
EclipseResourceUtil.getModelNature(context.getResource().getProject());
if(nature!=null) {
xModel = nature.getModel();
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ResourcePathProposalType.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ResourcePathProposalType.java 2009-12-15
11:08:41 UTC (rev 19272)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.kb/src/org/jboss/tools/jst/web/kb/internal/taglib/ResourcePathProposalType.java 2009-12-15
11:37:27 UTC (rev 19273)
@@ -63,6 +63,7 @@
@Override
protected void init(IPageContext context) {
super.init(context);
+ webRootResource = null;
if(xModel != null) {
XModelObject webInf = FileSystemsHelper.getWebInf(xModel);
XModelObject webRoot = FileSystemsHelper.getWebRoot(xModel);