[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: Running Jobs in an RCP

There is an "always run in background preference" that will stop user jobs from ever showing a progress dialog. I assume since you're writing an RCP app that you haven't set this preference, but I thought I'd mention it.
--


Chris Stillwell wrote:
I have a long running task that I have setup up as a Job.

Job myJob = new Job("MyJob")  {
    public IStatus run(IProgressMonitor monitor)
    {
     . . .
     }
};
myJob.setUser(true);
myJob.schedule();

The problem I am having is that the Job always runs in the background and
never displays any progress
indication.  My understanding from reading the Eclipse help is that user
jobs appear in a modal progress dialog.  Is there a bug or have I setup
something wrong in my RCP?