### Eclipse Workspace Patch 1.0 #P org.eclipse.jst.ws.axis2.consumption.core Index: src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java =================================================================== RCS file: /cvsroot/webtools/webservices/plugins/org.eclipse.jst.ws.axis2.consumption.core/src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java,v retrieving revision 1.10 diff -u -r1.10 Axis2ClientCodegenCommand.java --- src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java 16 Jul 2008 23:52:35 -0000 1.10 +++ src/org/eclipse/jst/ws/axis2/consumption/core/command/Axis2ClientCodegenCommand.java 7 Oct 2008 07:39:44 -0000 @@ -30,7 +30,9 @@ import java.util.Map; import org.eclipse.core.commands.ExecutionException; +import org.eclipse.core.resources.IProject; import org.eclipse.core.resources.ResourcesPlugin; +import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IAdaptable; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.IStatus; @@ -237,6 +239,17 @@ System.setProperty("javax.xml.transform.TransformerFactory", transformerFactory); } } + if (model.getWebProjectName()!=null){ + IProject project=ResourcesPlugin.getWorkspace().getRoot().getProject(model.getWebProjectName()); + if (project!=null){ + try { + project.close(null); + project.open(null); + } catch (CoreException e) { + e.printStackTrace(); + } + } + } } return status;