Issue #1790 bug fix for GFE dialogs in ticket 1353.

Change-Id: Ibe3361dfcf0361f66eb6d1da3893c309e8fcc612

Former-commit-id: ee4a6d815bc85f861bb7d77719c5787343625741
This commit is contained in:
Roger Ferrel 2013-03-28 09:04:10 -05:00
parent 9a321b6ac8
commit 98d056c3a1

View file

@ -36,6 +36,7 @@ import com.raytheon.viz.ghg.monitor.GhgMonitorDlg;
* ------------ ---------- ----------- --------------------------
* Mar 26, 2008 1033 lvenable Initial creation
* Nov 15, 2012 1298 rferrel Changes for non-blocking GhgMonitorDlg.
* Mar 28, 2013 1790 rferrel Bug fix for non-blocking dialogs.
*
* </pre>
*
@ -48,12 +49,14 @@ public class GhgMonitorAction extends AbstractHandler {
@Override
public Object execute(ExecutionEvent arg0) throws ExecutionException {
if (monitorDlg == null) {
if (monitorDlg == null || monitorDlg.isDisposed()) {
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
.getShell();
monitorDlg = new GhgMonitorDlg(shell);
monitorDlg.open();
} else {
monitorDlg.bringToTop();
}
monitorDlg.open();
return null;
}