/** * Creates a progress monitor dialog under the given shell. The dialog has a * standard title and no image. <code>open</code> is non-blocking. * * @param parent * the parent shell, or <code>null</code> to create a top-level * shell */ public ProgressMonitorDialog(Shell parent) { super(parent); // no close button on the shell style if (isResizable()) { setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX); } else { setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL); } setBlockOnOpen(false); }
/** * Creates a progress monitor dialog under the given shell. The dialog has a * standard title and no image. <code>open</code> is non-blocking. * * @param parent * the parent shell, or <code>null</code> to create a top-level * shell */ public ProgressMonitorDialog(Shell parent) { super(parent); // no close button on the shell style if (isResizable()) { setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX); } else { setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL); } setBlockOnOpen(false); }
/** * Creates a progress monitor dialog under the given shell. The dialog has a * standard title and no image. <code>open</code> is non-blocking. * * @param parent * the parent shell, or <code>null</code> to create a top-level * shell */ public ProgressMonitorDialog(Shell parent) { super(parent); // no close button on the shell style if (isResizable()) { setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL | SWT.RESIZE | SWT.MAX); } else { setShellStyle(getDefaultOrientation() | SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL); } setBlockOnOpen(false); }