Author: dgolovin
Date: 2008-02-06 22:55:39 -0500 (Wed, 06 Feb 2008)
New Revision: 6141
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java
Log:
rollback code for waitForJobs method
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java 2008-02-07
02:12:11 UTC (rev 6140)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/HibernateConsoleTest.java 2008-02-07
03:55:39 UTC (rev 6141)
@@ -93,7 +93,7 @@
if (!display.readAndDispatch())
display.sleep();
}
- display.update();
+ //display.update();
}
// Otherwise, perform a simple sleep.
@@ -110,8 +110,8 @@
* Wait until all background tasks are complete.
*/
public void waitForJobs() {
- while (noMoreJobs())
- delay(1000);
+ while (Platform.getJobManager().currentJob() != null)
+ delay(2000);
}
public boolean noMoreJobs() {