Bug 3037 - Delete project and recreation causes javascript parsing problem
authorEugene Ostroukhov <eugeneo@symbian.org>
Fri, 09 Jul 2010 17:49:55 -0700
changeset 438 99afbaa8a4bc
parent 437 b9e175c43f07
child 439 57fff6202b74
Bug 3037 - Delete project and recreation causes javascript parsing problem
org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/util/ProjectUtils.java
--- a/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/util/ProjectUtils.java	Fri Jul 09 16:09:45 2010 -0700
+++ b/org.symbian.tools.wrttools/src/org/symbian/tools/wrttools/util/ProjectUtils.java	Fri Jul 09 17:49:55 2010 -0700
@@ -247,7 +247,7 @@
 
     public static IProject createWrtProject(String name, URI uri, IProgressMonitor monitor) throws CoreException {
         uri = isDefaultProjectLocation(uri) ? null : uri;
-        monitor.beginTask("Create project resources", 25);
+        monitor.beginTask("Create project resources", 30);
         IWorkspace workspace = ResourcesPlugin.getWorkspace();
         IProject project = workspace.getRoot().getProject(name);
         BuildPathsBlock.createProject(project, uri, new SubProgressMonitor(monitor, 10));
@@ -258,6 +258,7 @@
                 true);
 
         IJavaScriptProject jsProject = JavaScriptCore.create(project);
+        jsProject.setRawIncludepath(null, new SubProgressMonitor(monitor, 5)); // See bug 3037
         final IIncludePathEntry[] includepath = jsProject.getRawIncludepath();
         final IIncludePathEntry[] newIncludePath = new IIncludePathEntry[includepath.length + 1];