|
From: <caw...@us...> - 2006-11-01 14:31:19
|
Revision: 1642
http://svn.sourceforge.net/rubyeclipse/?rev=1642&view=rev
Author: cawilliams
Date: 2006-11-01 06:31:13 -0800 (Wed, 01 Nov 2006)
Log Message:
-----------
make the progress estimate a little more plausible for building - multiuply number of files times (number of compilers + 2 [for flushing symbol index and for removing markers])
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java 2006-11-01 14:25:30 UTC (rev 1641)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/builder/AbstractRdtCompiler.java 2006-11-01 14:31:13 UTC (rev 1642)
@@ -38,13 +38,14 @@
public void compile(IProgressMonitor monitor) throws CoreException {
analyzeFiles();
List list = getFilesToCompile();
- monitor.beginTask("Building "+project.getName() + "...", list.size() * compilers.size() + 2);
+ int fileCount = list.size();
+ monitor.beginTask("Building "+project.getName() + "...", fileCount * (compilers.size() + 2));
monitor.subTask("Removing Markers...");
removeMarkers(markerManager);
- monitor.worked(1);
+ monitor.worked(fileCount);
flushIndexEntries(symbolIndex);
- monitor.worked(1);
+ monitor.worked(fileCount);
compileFiles(list, monitor);
monitor.done();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|