Issue #1287 Changes for non-blocking WESaveDialog.
Change-Id: Ic2dbc76126b3b38c27cdd3fc07ca1317725d12fd Former-commit-id: e02ff1c81c669ae0bcf5c068487a9c35bc542ff2
This commit is contained in:
parent
117bcc648e
commit
32154a3789
1 changed files with 11 additions and 5 deletions
|
@ -37,6 +37,7 @@ import com.raytheon.viz.gfe.dialogs.WESaveDialog;
|
|||
* ------------ ---------- ----------- --------------------------
|
||||
* Feb 27, 2008 Eric Babin Initial Creation
|
||||
* Apr 17, 2008 875 bphillip Added interaction with server
|
||||
* Oct 26, 2012 1287 rferrel Changes for non-blocking WESaveDialog.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -45,6 +46,7 @@ import com.raytheon.viz.gfe.dialogs.WESaveDialog;
|
|||
*/
|
||||
|
||||
public class ShowSaveForecastDialog extends AbstractHandler {
|
||||
private WESaveDialog dialog;
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
|
@ -60,13 +62,17 @@ public class ShowSaveForecastDialog extends AbstractHandler {
|
|||
return null;
|
||||
}
|
||||
|
||||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
||||
.getShell();
|
||||
if (dialog == null || dialog.getShell() == null || dialog.isDisposed()) {
|
||||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
||||
.getShell();
|
||||
|
||||
WESaveDialog dialog = new WESaveDialog(shell, dm);
|
||||
WESaveDialog dialog = new WESaveDialog(shell, dm);
|
||||
|
||||
dialog.setBlockOnOpen(true);
|
||||
dialog.open();
|
||||
dialog.setBlockOnOpen(false);
|
||||
dialog.open();
|
||||
} else {
|
||||
dialog.bringToTop();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue