Issue #1229 Changes for non-blocking NCDCInvHistDlg

Change-Id: I42b841d080c39daa907b34580ccce798b911eb48

Former-commit-id: 1c1f0760e1 [formerly 1c1f0760e1 [formerly 72184f8fff449a6765caea5931ae9bbf53a32478]]
Former-commit-id: 3a05faa4d2
Former-commit-id: 20614ac7a0
This commit is contained in:
Roger Ferrel 2012-10-08 12:08:16 -05:00
parent e7adde2f1a
commit da0b3664f1
2 changed files with 8 additions and 3 deletions

View file

@ -95,6 +95,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
* Oct 04, 2012 #1229 rferrel Made non-blocking.
* Oct 04, 2012 #1229 rferrel Changes for non-blocking ClimateHistoryDlg.
* Oct 08, 2012 #1229 rferrel Changes for non-blocking GenScriptsDlg.
* Oct 08, 2012 #1229 rferrel Changes for non-blocking NCDCInvHistDlg.
*
* </pre>
*
@ -860,10 +861,12 @@ public class ClimateDataMenuDlg extends CaveSWTDialog {
* Display the NCDC inventory/history dialog.
*/
private void displayNCDCInventoryHistoryDialog() {
if (invHistoryDlg == null) {
if (invHistoryDlg == null || invHistoryDlg.getShell() == null
|| invHistoryDlg.isDisposed()) {
invHistoryDlg = new NCDCInvHistDlg(shell);
invHistoryDlg.open();
invHistoryDlg = null;
} else {
invHistoryDlg.bringToTop();
}
}

View file

@ -55,6 +55,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
* ------------ ---------- ----------- --------------------------
* Nov 16, 2009 #3438 lvenable Initial creation
* Oct 08, 2012 #1229 rferrel Changes for non-blocking GenScriptsDlg.
* Oct 08, 2012 #1229 rferrel Make dialog non-blocking.
*
* </pre>
*
@ -135,7 +136,8 @@ public class NCDCInvHistDlg extends CaveSWTDialog {
* Parent shell.
*/
public NCDCInvHistDlg(Shell parentShell) {
super(parentShell, SWT.DIALOG_TRIM, CAVE.PERSPECTIVE_INDEPENDENT);
super(parentShell, SWT.DIALOG_TRIM, CAVE.PERSPECTIVE_INDEPENDENT
| CAVE.DO_NOT_BLOCK);
setText("NCDC Inventory/History");
}