| Dialog is minimized when open in Display.asyncExec [message #542478] |
Thu, 24 June 2010 23:00  |
nesta Messages: 3 Registered: June 2010 |
Junior Member |
|
|
Hi,
I create one window and one modeless dialog with JFace.
class AppWindow extends ApplicationWindow
class AppDialog extends Dialog
public AppDialog(Shell parentShell) {
super(parentShell);
super.setShellStyle(SWT.MODELESS | SWT.CLOSE);
super.setBlockOnOpen(false);
}
AppWindow app = new AppWindow(null);
AppDialog dialog = new AppDialog(null);
The scenario is as follows:
1. open AppWindows.
2. minimize the AppWindows.
3. open window in Display.asyncExec()
getShell().getDisplay().asyncExec(new Runnable() {
public void run() {
new AppDialog(null).open();
}
});
The result is that new open dialog is also minimized.
How to open the dialog normally?
Thanks very much.
Regards,
Nesta
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02020 seconds