[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: job dialog ...

There is no "easy" way to customize the dialog that is displayed for user jobs. If you are writing an RCP application, you are free to implement all the user interface for jobs yourself (by implementing a org.eclipse.core.runtime.jobs.ProgressProvider). However, this is quite complex to write. If you only want a custom dialog for a certain group of jobs, then you could make them non-user jobs, and then use a job change listener to open a dialog. However, there is no way to accurately get the progress "ticks" from those jobs to show progress in that dialog.
--


Carmelo Scala wrote:
Hi all,

I'm trying to create a job dialog similar to the one that appear when you start building your project; I mean I dialog with few running process each one monitored by a different progress meter . (that can be stopped and .)



Is there any way to customize easily the job dialog that appears automatically when you set the user to true?



Right now I'm using a single job that open few threads inside one for each subjob (clearly I will only get one meter).



myJob.setProperty(IProgressConstants.KEEP_PROPERTY,

                new Boolean(true));



myJob.addJobChangeListener(new JobChangeAdapter()

  {

  public void done(IJobChangeEvent event)

       {

        if (event.getResult().isOK())

               System.out.println("Job completed successfully");

        else

            System.out.println("Job did not complete successfully");

       }

    });



myJob.setUser(true);

myJob.schedule();



probably I have to create just a dialog that get information from a normal thread .



any suggestion?



Regards

Car