jruaux 2003/01/13 05:48:43
Modified: Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant
StartServerHelper.java
Log:
Added progress dialog unit of work contribution
Revision Changes Path
1.5 +5 -3
jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant/StartServerHelper.java
Index: StartServerHelper.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/Eclipse-Plugin/src/java/org/apache/cactus/eclipse/containers/ant/StartServerHelper.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- StartServerHelper.java 10 Jan 2003 17:28:10 -0000 1.4
+++ StartServerHelper.java 13 Jan 2003 13:48:43 -0000 1.5
@@ -152,11 +152,13 @@
Thread thread = new Thread(this);
thread.start();
-
+ // UI contribution, the number is relative to the task which
+ // total is 10
+ pm.worked(1);
// Wait a few ms more (just to make sure the servlet engine is
// ready to accept connections)
sleep(1000);
-
+ pm.worked(2);
// Continuously try calling the test URL until it succeeds
while (true)
{
@@ -164,7 +166,7 @@
if (!isURLCallable())
{
sleep(500);
-
+ pm.worked(1);
continue;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>