Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Progress View is not refreshing when running many jobs(Progress View is not refreshing when running many jobs)
Progress View is not refreshing when running many jobs [message #824053] Mon, 19 March 2012 03:43
Eclipse UserFriend
I've problem with running big number of concurrent Jobs in my Eclipse RCP application. When I start 100 Jobs (like the one bellow), they execute normally but after they are finished they are still visible in Progress View for about 10 seconds. I would like Progress View to clear Jobs immediately after they are finished. If I start less Jobs (eg. 10) Progress View refreshes it self immediately.


class MyJob extends Job
{
    public MyJob(String name) {
        super(name);
    } 

    public IStatus run(IProgressMonitor monitor){
            //SOME EXPENSIVE COMPUTATIONS
        BigInteger bigint = new BigInteger("0");
        for ( int i=0 ; i<100 ; i++ ) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            bigint = bigint.add(new BigInteger(Integer.toString(i)));
        }
        monitor.done();

        return new  Status(IStatus.OK, "foo", "OK");
    }
}
Previous Topic:Control based authorization in eclipse RCP
Next Topic:JasperWave 0.9.4: advanced styles management, Zoom and JasperReports Server integration
Goto Forum:
  


Current Time: Sat Jul 05 01:39:37 EDT 2025

Powered by FUDForum. Page generated in 0.03597 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top