Issue #1229 Changes for non-blocking TransmissionQueueDlg.

Change-Id: Iec8ffefbde98e0e86433592562a0f0f15b0c8a86

Former-commit-id: 1b1b5a0f1c3966524c3e634bf53502d08c3fb80d
This commit is contained in:
Roger Ferrel 2012-10-10 13:55:56 -05:00
parent e2f314bf5d
commit d734ffe25a
2 changed files with 13 additions and 3 deletions

View file

@ -134,6 +134,7 @@ import com.raytheon.viz.ui.dialogs.ICloseCallback;
* 10/04/2012 1229 rferrel Changes for non-blocking ClimateMenuDlg.
* 10/09/2012 1229 rferrel Made dialog non-blocking.
* 10/10/2012 1229 rferrel Changes for non-blocking ResourceEditorDlg.
* 10/10/2012 1229 rferrel Changes for non-blocking TransmissionQueueDlg.
*
* </pre>
*
@ -242,6 +243,8 @@ public class TafMonitorDlg extends CaveSWTDialog {
private ClimateMenuDlg climateMenuDlg;
private TransmissionQueueDlg tqDlg;
/**
* Constructor.
*
@ -684,8 +687,13 @@ public class TafMonitorDlg extends CaveSWTDialog {
queueBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent event) {
TransmissionQueueDlg tqd = new TransmissionQueueDlg(shell);
tqd.open();
if (tqDlg == null || tqDlg.getShell() == null
|| tqDlg.isDisposed()) {
tqDlg = new TransmissionQueueDlg(shell);
tqDlg.open();
} else {
tqDlg.bringToTop();
}
}
});
}

View file

@ -60,6 +60,7 @@ import com.raytheon.viz.ui.widgets.ToggleSelectList;
* ------------ ---------- ----------- --------------------------
* 28 FEB 2008 938 lvenable Initial creation
* 14 MAY 2012 14715 rferrel Use EDEX to perform requests.
* 10 OCT 2012 1229 rferrel Make dialog non-blocking.
*
* </pre>
*
@ -157,7 +158,8 @@ public class TransmissionQueueDlg extends CaveSWTDialog {
*/
public TransmissionQueueDlg(Shell parent) {
super(parent, SWT.DIALOG_TRIM | SWT.RESIZE,
CAVE.PERSPECTIVE_INDEPENDENT | CAVE.MODE_INDEPENDENT);
CAVE.PERSPECTIVE_INDEPENDENT | CAVE.MODE_INDEPENDENT
| CAVE.DO_NOT_BLOCK);
setText("AvnFPS Transmission Queue");
}