Author: scabanovich
Date: 2011-08-02 20:13:26 -0400 (Tue, 02 Aug 2011)
New Revision: 33478
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java
Log:
JBIDE-9120
https://issues.jboss.org/browse/JBIDE-9120
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java 2011-08-03
00:12:31 UTC (rev 33477)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/WebModelPlugin.java 2011-08-03
00:13:26 UTC (rev 33478)
@@ -132,6 +132,7 @@
* @throws CoreException
*/
public static void addNatureToProjectWithValidationSupport(IProject project, String
builderId, String natureId) throws CoreException {
+ EclipseResourceUtil.addNatureToProject(project, natureId);
IProjectDescription desc = project.getDescription();
ICommand[] existing = desc.getBuildSpec();
boolean updated = false;
@@ -174,7 +175,6 @@
project.setDescription(desc, null);
updated = false;
}
- EclipseResourceUtil.addNatureToProject(project, natureId);
desc = project.getDescription();
existing = desc.getBuildSpec();
builderIndex = existing.length-1;