majkz / js-builder

Automatically exported from code.google.com/p/js-builder
0 stars 1 forks source link

Improve file loading #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When adding project files recursively, the UI will become non-responsive 
for large folder structures.  Need to process file adding on a separate 
thread and add notification/cancellation option.

Once this is working, look at possibly making the project load all files 
under the project folder automatically on project creation.

Original issue reported on code.google.com by bmoes...@gmail.com on 23 Jan 2007 at 7:53

GoogleCodeExporter commented 8 years ago
Hey, I was playing around with js-builder earlier today, and decided to give the
separate-thread file loading a try.  After hacking away at it for a little bit, 
I got
it to load the dirs/files in a separate thread (for ease of use, I used the
BackgroundWorker class).  Are you interested in the code?  Its not 100% 
complete (it
doesn't do things such as disable UI features which may conflict with the file
loading).  It does however update the status bar with text that states its 
loading,
and allows the user to click on the text in order to cancel the loading.  I 
didn't
tie into the progress bar at all though, but it wouldn't be too hard.  The 
hardest
part would be deciding logical progress (as there's an unknown number of
files/directories to scan).

I attached a diff patch, but its a little ugly thanks in large due to 
spaces/tabs
(and me not being familiar with diff patching).  I'd be more than happy to post 
the
code (there's 1 new class, and MainForm.cs/MainForm.Designer.cs are the only 
changed
files).

Thanks
Sasa I.

Original comment by elizar...@gmail.com on 28 Mar 2008 at 2:10

Attachments: