Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 140653

Summary: [Import/Export] Progress for import project (with copy) is not reflective of actual progress
Product: [Eclipse Project] Platform Reporter: Karice McIntyre <Karice_McIntyre>
Component: IDEAssignee: Platform UI Triaged <platform-ui-triaged>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P5 CC: Ben.Aveling, dj.houghton, mario.winterer, remy.suen
Version: 3.2Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard: stalebug

Description Karice McIntyre CLA 2006-05-08 15:48:42 EDT
3.2 RC3
If I choose to import a project from a directory and it has lots of files, the progress monitor appears at 100% the whole time.  I think the progress monitor is based on the number of projects selected and not the contents within each project.

Steps:
1.Create a project with lots of files/folders (10000 folders with 2 files in each folder is my example)
2. Start a new workspace and do Import > Existing project from Workspace.
3. Check the Copy projects into workspace option.  Finish
Notice the files updating when each is imported but the progress is at 100% the whole time.
Comment 1 Evan Hughes CLA 2007-07-23 15:17:05 EDT
I've been able to reproduce with many fewer projects/folders. Exporting and then importing any Java source project with >200 .java files seems to do the trick.
Comment 2 Remy Suen CLA 2007-08-30 22:55:33 EDT
The assumption of the progress monitor being based on the number of projects is correct. WizardProjectsImportPage's createProjects() method shows that the IPM is starting a task that is equal to the length of the selected items.

The other obvious issue is that the sub IPM that's passed into createExistingProject calls done() after the IProject has been created when it hasn't even been populated with any of the files.

I'm not too familiar with ImportOperation's code, but if we can properly aggregate the number of files to import while doing the overwrite/readonly checks, we can have a real, working IPM (possibly can include file sizes into the equation).
Comment 3 Ben Aveling CLA 2008-01-21 17:12:53 EST
See also Bug# 179959?
Comment 4 Susan McCourt CLA 2009-07-15 12:13:27 EDT
"As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009"
Comment 5 Prakash Rangaraj CLA 2009-07-16 01:54:14 EDT
*** Bug 179959 has been marked as a duplicate of this bug. ***
Comment 6 Szymon Ptaszkiewicz CLA 2013-03-06 10:11:23 EST
*** Bug 370591 has been marked as a duplicate of this bug. ***
Comment 7 Eclipse Genie CLA 2020-01-22 04:14:41 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.