I have created a JFace Modeless Dialog and trying to set shell style with following options
setShellStyle(SWT.CLOSE | SWT.TITLE |SWT.MODELESS |SWT.ON_TOP);
I want this dialog to be always on top , but the dialog gets minimized when I minimize the eclipse workbench.
Am I missing something with the shell style bits or is this the expected behavior?
How can I make an always on top dialog even if we minimize the eclipse application?
public class Capture extends Dialog {
public Capture(Shell parentShell) {
super(parentShell);
setShellStyle(SWT.CLOSE | SWT.TITLE |SWT.MODELESS |SWT.ON_TOP);
}
}
Use null
for the parent Shell so that the dialog is not a child of the window you are minimizing.