Bug 128988 - [Progress] The progress dialog box is not visible during startup if cancel is enabled
Summary: [Progress] The progress dialog box is not visible during startup if cancel is...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-02-22 10:55 EST by Klaus Nossek CLA
Modified: 2019-09-06 16:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Nossek CLA 2006-02-22 10:55:16 EST
Issue: The progress dialog box is not visible during eclipse startup if cancel    
       is enabled:
          getSite().getWorkbenchWindow().getWorkbench().getProgressService()
                   .run(true,true, runnable);

However: The progress dialog box is visible during eclipse startup if cancel
         is disable:
          getSite().getWorkbenchWindow().getWorkbench().getProgressService()
                   .run(true,true, runnable);   

The same behaviour in Eclipse Version 3.1.2.
Comment 1 Klaus Nossek CLA 2006-02-23 11:48:04 EST
Sorry for typo - The progress dialog box is visible during eclipse startup if 
                 cancel is disabled:

  getSite().getWorkbenchWindow().getWorkbench().getProgressService()
           .run(true,false, runnable); 
Comment 2 Tod Creasey CLA 2006-03-02 10:36:16 EST
Can you give me more details please. Are you trying to execute something in a dialog during startup? If so are you doing it on the startup of your plug-in.

Note that will have trouble starting something before the workbench is started.

If you could give me a quicky example plug-in that would help a lot.
Comment 3 Klaus Nossek CLA 2006-03-15 07:51:06 EST
I have developed an eclipse plugin that is able to parse a very larg file(e.g. 500 MB) during the startup of the workbench. There is a different behaviour of the progress dialog box:

1. If cancel is disabled(run(true,false, runnable)):
The progress dialog box is visible during the startup of the workbench.
2. If cancel is enabled(run(true,true, runnable)):
The progress dialog box is not visible during the startup of the workbench. Why ?
Due to this behaviour the user is not able to cancel the parsing process of the 
lange file.

Code snippet:
IRunnableWithProgress runnable = new IRunnableWithProgress() {
  public void run(IProgressMonitor monitor) throws InvocationTargetException,                InterruptedException {
	try {
		parseFileAndPropagateDataToMonitor();
		monitor.done();
	} catch (...) {				
	}
}
};
try {
getSite().getWorkbenchWindow().getWorkbench().getProgressService().run(true, true, runnable);
} catch (...){
}
Comment 4 Tod Creasey CLA 2007-06-18 15:49:15 EDT
The new launcher support in 3.3 allows you to show progress in the launch dialog - that is now out recommended way to handle this sort of issue.
Comment 5 Susan McCourt CLA 2009-07-09 19:37:25 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:14:11 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.