Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 370409

Summary: Use user Job instead of ProgressMonitorDialog to generate "architecture" & "editor"
Product: [Modeling] EEF Reporter: Mikaël Barbero <mikael.barbero>
Component: GeneralAssignee: Bouchet Stéphane <sbouchet>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sbouchet
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mikaël Barbero CLA 2012-02-02 04:34:32 EST
ProgressMonitorDialog is a user blocking dialog and the generation can be quite long. I would like to do other things within my workbench while EEF is generating. So please generate with a background Job (a user one if you want to display a progress dialog with an "run in background" option).

Here is a snippet to help you start over (taken from http://eclipse-tips.com/how-to-guides/4-progress-bars-in-eclipse-ui)

Job job = new Job("My new job") {
     @Override
     protected IStatus run(IProgressMonitor monitor) {
         monitor.beginTask("Some nice progress message here ...", 100);
         // execute the task ...
         monitor.done();
         return Status.OK_STATUS;
     }
 };
job.setUser(true)
job.schedule();
Comment 1 Bouchet Stéphane CLA 2012-03-07 10:10:18 EST
fixed in next build on HEAD