Source:
<code>private IFile importProject(String name, IConfigurationElement config, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException { String path = config.getAttribute("archive"); if (name == null || path == null) return null; IWorkspace workspace = PDEPlugin.getWorkspace(); IWorkspaceRoot root = workspace.getRoot(); IProject project = root.getProject(name); boolean skip = false; <START> SubMonitor subMonitor = SubMonitor.convert(monitor, name, 1); <END> if (project.exists()) { if (!yesToAll) { String returnId = query.queryOverwrite(project.getFullPath().toString()); if (returnId.equals(IOverwriteQuery.ALL)) { yesToAll = true; skip = false; } else if (returnId.equals(IOverwriteQuery.YES)) { skip = false; } else if (returnId.equals(IOverwriteQuery.NO)) { skip = true; } else if (returnId.equals(IOverwriteQuery.CANCEL)) { skip = true; cancel = true; } } if (!skip) { project.delete(true, true, subMonitor.newChild(1)); project = root.getProject(name); } else monitor.worked(1); } if (skip) { monitor.worked(3); IFile manifest = project.getFile(SAMPLE_PROPERTIES); return manifest; } project.create(subMonitor.newChild(1)); project.open(new NullProgressMonitor()); Bundle bundle = Platform.getBundle(sample.getNamespaceIdentifier()); ZipFile zipFile = getZipFileFromPluginDir(path, bundle); importFilesFromZip(zipFile, project.getFullPath(), subMonitor.newChild(1)); return createSampleManifest(project, config, subMonitor.newChild(1)); }</code><technical_language>Ticks line up. Change 1 match number of calls newChild + worked. Also: version missing call beginTask, callers of this method missing call newChild. Search for verify present</technical_language>

Target:
private IFile importProject(String name, IConfigurationElement config, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException { String path = config.getAttribute("archive"); if (name == null || path == null) return null; IWorkspace workspace = PDEPlugin.getWorkspace(); IWorkspaceRoot root = workspace.getRoot(); IProject project = root.getProject(name); boolean skip = false; SubMonitor subMonitor = SubMonitor.convert(monitor, name, 5); if (project.exists()) { if (!yesToAll) { String returnId = query.queryOverwrite(project.getFullPath().toString()); if (returnId.equals(IOverwriteQuery.ALL)) { yesToAll = true; skip = false; } else if (returnId.equals(IOverwriteQuery.YES)) { skip = false; } else if (returnId.equals(IOverwriteQuery.NO)) { skip = true; } else if (returnId.equals(IOverwriteQuery.CANCEL)) { skip = true; cancel = true; } } if (!skip) { project.delete(true, true, subMonitor.newChild(1)); project = root.getProject(name); } else { subMonitor.worked(1); } } if (skip) { subMonitor.worked(4); IFile manifest = project.getFile(SAMPLE_PROPERTIES); return manifest; } project.create(subMonitor.newChild(1)); project.open(subMonitor.newChild(1)); Bundle bundle = Platform.getBundle(sample.getNamespaceIdentifier()); ZipFile zipFile = getZipFileFromPluginDir(path, bundle); importFilesFromZip(zipFile, project.getFullPath(), subMonitor.newChild(1)); return createSampleManifest(project, config, subMonitor.newChild(1)); }