Issue #1287 Chagnes for non-blocking TemporalEditorRangeStatisticsDialog.
Change-Id: I7726f8934351cea98edbf7751f23f42248e5b17c Former-commit-id:37c7d61195
[formerly a8e412f5d0cd625b6c421b0609bc7149d7386f1a] Former-commit-id:af887de89c
This commit is contained in:
parent
2711bab50a
commit
9647a110c6
1 changed files with 12 additions and 6 deletions
|
@ -36,12 +36,15 @@ import com.raytheon.viz.gfe.dialogs.TemporalEditorRangeStatisticsDialog;
|
|||
* ------------ ---------- ------------- --------------------------
|
||||
* Feb 14, 2008 Eric Babin Initial Creation
|
||||
* Jun 04, 2009 #2159 Richard Peter Moved initialization to Dialog.
|
||||
* Oct 26, 2012 1287 rferrel Changes for non-blocking TemporalEditorRangeStatisticsDialog.
|
||||
* </pre>
|
||||
*
|
||||
* @author ebabin
|
||||
* @version 1.0
|
||||
*/
|
||||
public class ShowTemporalEditorRangeStatisticsDialog extends AbstractHandler {
|
||||
private TemporalEditorRangeStatisticsDialog dialog;
|
||||
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
*
|
||||
|
@ -51,13 +54,16 @@ public class ShowTemporalEditorRangeStatisticsDialog extends AbstractHandler {
|
|||
*/
|
||||
@Override
|
||||
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
||||
.getShell();
|
||||
if (dialog == null || dialog.getShell() == null || dialog.isDisposed()) {
|
||||
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
|
||||
.getShell();
|
||||
|
||||
TemporalEditorRangeStatisticsDialog dialog = new TemporalEditorRangeStatisticsDialog(
|
||||
shell);
|
||||
dialog.setBlockOnOpen(true);
|
||||
dialog.open();
|
||||
dialog = new TemporalEditorRangeStatisticsDialog(shell);
|
||||
dialog.setBlockOnOpen(false);
|
||||
dialog.open();
|
||||
} else {
|
||||
dialog.bringToTop();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue