Issue #1087: Enable DRT for CAVE operational mode.
Change-Id: I8d9992b2fd5b6ddaec447ee70869124d1d76a4d9 Former-commit-id:a03dfbea98
[formerlyf3a33e3df4
] [formerlyf7182ae9c7
] [formerlyec2d211800
[formerlyf7182ae9c7
[formerly 3f3c778d6f3c5ced13f778746c6a9a46f72c396c]]] Former-commit-id:ec2d211800
Former-commit-id: 6b68db4233ced16f4cebc0b40b285c958108b1b8 [formerlycbd3bfacfa
] Former-commit-id:3b41cd02f4
This commit is contained in:
parent
137c2871ad
commit
b33e97efd3
1 changed files with 6 additions and 15 deletions
|
@ -23,10 +23,7 @@ package com.raytheon.viz.ui.actions;
|
|||
import org.eclipse.core.commands.AbstractHandler;
|
||||
import org.eclipse.core.commands.ExecutionEvent;
|
||||
import org.eclipse.core.commands.ExecutionException;
|
||||
import org.eclipse.jface.dialogs.MessageDialog;
|
||||
|
||||
import com.raytheon.viz.core.mode.CAVEMode;
|
||||
import com.raytheon.viz.ui.VizWorkbenchManager;
|
||||
import com.raytheon.viz.ui.dialogs.SetTimeDialog;
|
||||
|
||||
/**
|
||||
|
@ -39,6 +36,9 @@ import com.raytheon.viz.ui.dialogs.SetTimeDialog;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Nov 30,2007 461 bphillip Initial Creation
|
||||
* Aug 23,2012 #1087 dgilling Allow DRT mode to be engaged
|
||||
* regardless of practice or
|
||||
* operational mode.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -49,19 +49,10 @@ public class ShowTimeDialog extends AbstractHandler {
|
|||
|
||||
@Override
|
||||
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||
|
||||
if (CAVEMode.getMode() == CAVEMode.PRACTICE) {
|
||||
if (!SetTimeDialog.getInstance().isOpen()) {
|
||||
SetTimeDialog.getInstance().open();
|
||||
}
|
||||
} else {
|
||||
MessageDialog
|
||||
.openError(
|
||||
VizWorkbenchManager.getInstance()
|
||||
.getCurrentWindow().getShell(),
|
||||
"DRT Error",
|
||||
"The Displaced Real Time functionality is only available when running in practice mode");
|
||||
if (!SetTimeDialog.getInstance().isOpen()) {
|
||||
SetTimeDialog.getInstance().open();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue