Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Dialog is minimized when open in Display.asyncExec
Dialog is minimized when open in Display.asyncExec [message #542478] Fri, 25 June 2010 03:00 Go to next message
nesta  is currently offline nesta Friend
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
Re: Dialog is minimized when open in Display.asyncExec [message #542982 is a reply to message #542478] Mon, 28 June 2010 06:18 Go to previous messageGo to next message
nesta  is currently offline nesta Friend
Messages: 3
Registered: June 2010
Junior Member
The dialog is not minimized, but is behind eclipse window.
How to make it ahead?

Regards,
Nesta

[Updated on: Mon, 28 June 2010 08:58]

Report message to a moderator

Re: Dialog is minimized when open in Display.asyncExec [message #543390 is a reply to message #542982] Tue, 29 June 2010 09:43 Go to previous message
nesta  is currently offline nesta Friend
Messages: 3
Registered: June 2010
Junior Member
"Shell.forceActive()" works for me.
Previous Topic:Closing a view programmatically before shutdown
Next Topic:multiple selection widget ("FilteredCheckBoxTreeViewer")
Goto Forum:
  


Current Time: Sun Nov 23 13:45:57 GMT 2014

Powered by FUDForum. Page generated in 0.02286 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software