Issue #1229 Changes for non-blocking ClimateHistoryDlg.

Change-Id: Icc33809c0cc0874b9854d081eb4bb28f816a4e74

Former-commit-id: 379ed8f81d [formerly b6516168a2] [formerly 379ed8f81d [formerly b6516168a2] [formerly 2a0dcd99fc [formerly c242c08d88e7ef0147046e64c0be261c10540a1f]]]
Former-commit-id: 2a0dcd99fc
Former-commit-id: c5ac86a88b [formerly 1c3a78e961]
Former-commit-id: 43b0a0ea13
This commit is contained in:
Roger Ferrel 2012-10-04 15:14:02 -05:00
parent 653cd7affa
commit 6d3cba365e
2 changed files with 8 additions and 3 deletions

View file

@ -92,6 +92,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* May 24, 2011 #9075 rferrel Changed getObsHistoryFromInv() to scan
* ish-inventory.txt only one time.
* Oct 04, 2012 #1229 rferrel Made non-blocking.
* Oct 04, 2012 #1229 rfrreel Changes of non-blocking ClimateHistoryDlg.
*
* </pre>
*
@ -844,10 +845,12 @@ public class ClimateDataMenuDlg extends CaveSWTDialog {
return;
}
if (climateHistoryDlg == null) {
if (climateHistoryDlg == null || climateHistoryDlg.getShell() == null
|| climateHistoryDlg.isDisposed()) {
climateHistoryDlg = new ClimateHistoryDlg(shell, data);
climateHistoryDlg.open();
climateHistoryDlg = null;
} else {
climateHistoryDlg.bringToTop();
}
}

View file

@ -48,6 +48,7 @@ import com.raytheon.viz.ui.dialogs.CaveSWTDialog;
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Nov 16, 2009 #3438 lvenable Initial creation
* Oct 06, 2012 #1229 rferrel Made non-blocking.
*
* </pre>
*
@ -87,7 +88,8 @@ public class ClimateHistoryDlg extends CaveSWTDialog {
*/
public ClimateHistoryDlg(Shell parentShell,
ClimateHistoryData climateHistData) {
super(parentShell, SWT.DIALOG_TRIM, CAVE.PERSPECTIVE_INDEPENDENT);
super(parentShell, SWT.DIALOG_TRIM, CAVE.PERSPECTIVE_INDEPENDENT
| CAVE.DO_NOT_BLOCK);
setText("Climate History");
this.climateHistData = climateHistData;