Author: scabanovich
Date: 2011-05-31 20:39:38 -0400 (Tue, 31 May 2011)
New Revision: 31712
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java
Log:
JBIDE-9028
https://issues.jboss.org/browse/JBIDE-9028
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java 2011-06-01
00:21:56 UTC (rev 31711)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/operation/JSFProjectCreationOperation.java 2011-06-01
00:39:38 UTC (rev 31712)
@@ -39,9 +39,11 @@
import org.jboss.tools.jsf.project.JSFAutoLoad;
import org.jboss.tools.jsf.project.JSFNature;
import org.jboss.tools.jsf.web.JSFTemplate;
+import org.jboss.tools.jst.web.WebModelPlugin;
import org.jboss.tools.jst.web.WebUtils;
import org.jboss.tools.jst.web.context.RegisterServerContext;
import org.jboss.tools.jst.web.kb.IKbProject;
+import org.jboss.tools.jst.web.kb.internal.KbBuilder;
import org.jboss.tools.jst.web.project.helpers.IWebProjectTemplate;
import org.jboss.tools.jst.web.project.helpers.NewWebProjectContext;
import org.jboss.tools.jst.web.ui.operation.WebProjectCreationOperation;
@@ -171,7 +173,8 @@
model.getProperties().put(XModelConstants.AUTOLOAD, new JSFAutoLoad());
try {
- EclipseResourceUtil.addNatureToProject(getProject(), IKbProject.NATURE_ID);
+// EclipseResourceUtil.addNatureToProject(getProject(), IKbProject.NATURE_ID);
+ WebModelPlugin.addNatureToProjectWithValidationSupport(getProject(),
KbBuilder.BUILDER_ID, IKbProject.NATURE_ID);
} catch (CoreException e) {
JSFModelPlugin.getPluginLog().logError(e);
}