Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370409 - Use user Job instead of ProgressMonitorDialog to generate "architecture" & "editor"
Summary: Use user Job instead of ProgressMonitorDialog to generate "architecture" & "e...
Status: RESOLVED FIXED
Alias: None
Product: EEF
Classification: Modeling
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---   Edit
Assignee: Bouchet Stéphane CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-02 04:34 EST by Mikaël Barbero CLA
Modified: 2016-05-05 10:26 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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