Issue #1229 Changes for non-blocking CaveSWTWizardDlg.
Change-Id: I2ce93910b6605e5527c321f594bd0a03b13f321d Former-commit-id:9a5a87635a
[formerlyae3fb5eef5
] [formerly9a5a87635a
[formerlyae3fb5eef5
] [formerly314af882c6
[formerly 30b387dc4c5392263ba3e82bca1db64099684ecf]]] Former-commit-id:314af882c6
Former-commit-id:d7fe430a7e
[formerly39b1fcbb01
] Former-commit-id:729a2b227c
This commit is contained in:
parent
7c38a3f040
commit
b0dd9d2d6b
2 changed files with 11 additions and 4 deletions
|
@ -36,6 +36,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTWizardDlg;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Dec 14, 2010 mschenke Initial creation
|
||||
* Oct 22, 2012 1229 rferrel Changes for non-blocking CaveSWTWizardDlg.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -44,6 +45,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTWizardDlg;
|
|||
*/
|
||||
|
||||
public class NewDerivedParameterAction extends Action {
|
||||
private CaveSWTWizardDlg dialog;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -55,9 +57,13 @@ public class NewDerivedParameterAction extends Action {
|
|||
@Override
|
||||
public void run() {
|
||||
DerivedParamWizard wizard = new DerivedParamWizard();
|
||||
CaveSWTWizardDlg dialog = new CaveSWTWizardDlg(VizWorkbenchManager
|
||||
.getInstance().getCurrentWindow().getShell(), wizard);
|
||||
dialog.open();
|
||||
if (dialog == null || dialog.getShell() == null || dialog.isDisposed()) {
|
||||
dialog = new CaveSWTWizardDlg(VizWorkbenchManager.getInstance()
|
||||
.getCurrentWindow().getShell(), wizard);
|
||||
dialog.open();
|
||||
} else {
|
||||
dialog.bringToTop();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -46,6 +46,7 @@ import org.eclipse.swt.widgets.Shell;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Dec 19, 2010 lvenable Initial creation
|
||||
* Oct 22, 2012 1229 rferrel Dialog changed to non-blocking.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -75,7 +76,7 @@ public class CaveSWTWizardDlg extends CaveSWTDialog {
|
|||
private ArrayList<Composite> pageCompArray;
|
||||
|
||||
public CaveSWTWizardDlg(Shell parent, CaveSWTWizard swtWizzard) {
|
||||
super(parent, SWT.APPLICATION_MODAL | SWT.MIN);
|
||||
super(parent, SWT.APPLICATION_MODAL | SWT.MIN, CAVE.DO_NOT_BLOCK);
|
||||
this.swtWizzard = swtWizzard;
|
||||
if (swtWizzard.getTitle() != null) {
|
||||
setText(swtWizzard.getTitle());
|
||||
|
|
Loading…
Add table
Reference in a new issue