[jbosstools-commits] JBoss Tools SVN: r7036 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Mar 20 08:16:14 EDT 2008


Author: scabanovich
Date: 2008-03-20 08:16:14 -0400 (Thu, 20 Mar 2008)
New Revision: 7036

Modified:
   trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
Log:
JBIDE-1933

Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java	2008-03-20 11:47:13 UTC (rev 7035)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/operation/WebNatureOperation.java	2008-03-20 12:16:14 UTC (rev 7036)
@@ -219,7 +219,7 @@
 			// create Red Hat Web Nature
 			preCreateWebNature();
 //			createWebNature();
-			monitor.worked(4);
+//			monitor.worked(4);
 			// create Java Nature
 			JavaCore.create(getProject());
 //			createJavaNature(); // create java nature now migrate into create WTP nature @see createWTPNature()
@@ -228,10 +228,15 @@
 //			updateVersion();
 			monitor.worked(1);
 			// refresh project resource
-			getProject().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
-			monitor.worked(3);
+//			getProject().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+//			monitor.worked(3);
 			// update model
 				createWebNature();
+				monitor.worked(4);
+
+				getProject().refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+				monitor.worked(3);
+
 				updateJavaNature(); // create java nature now migrate into create WTP nature @see createWTPNature()
 				updateVersion();
 




More information about the jbosstools-commits mailing list