I want to show a ProgressBar inside a normal jface Dialog at the start of an Eclipse RCP App.
I have a Login dialog which is shown at the start of the Application, before the Workbench is created:
LoginDialog loginDialog = new LoginDialog(null);
loginDialog.setBlockOnOpen(true);
if (loginDialog.open() != Dialog.OK) {
display.dispose();
return IApplication.EXIT_OK;
}
on LoginDialog.okPressed() I call the login information. I need to show an SWT.INDETERMINATE ProgressBar while the login logic is being done.
http://tom-eclipse-dev.blogspot.com/2007/06/splash-screen-and-threads.html describes how you can develop a splash login. I managed to adapt it to a Dialog and it works like a charm.