Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:43
Paweł Adamski is currently offline Paweł AdamskiFriend
Messages: 1
Registered: March 2012
Junior Member
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: Fri Nov 28 06:18:22 GMT 2014

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

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