Skip to main content



      Home
Home » Eclipse Projects » JFace » Dialog is minimized when open in Display.asyncExec
Dialog is minimized when open in Display.asyncExec [message #542478] Thu, 24 June 2010 23:00 Go to next message
Eclipse UserFriend
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 02:18 Go to previous messageGo to next message
Eclipse UserFriend
The dialog is not minimized, but is behind eclipse window.
How to make it ahead?

Regards,
Nesta

[Updated on: Mon, 28 June 2010 04:58] by Moderator

Re: Dialog is minimized when open in Display.asyncExec [message #543390 is a reply to message #542982] Tue, 29 June 2010 05:43 Go to previous message
Eclipse UserFriend
"Shell.forceActive()" works for me.
Previous Topic:using other celleditors than TextCellEditor with ObservableValueEditingSupport
Next Topic:Observing CellEditor.value
Goto Forum:
  


Current Time: Wed Jul 23 07:20:04 EDT 2025

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

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

Back to the top