Issue #1087: Enable DRT for CAVE operational mode.
Change-Id: I8d9992b2fd5b6ddaec447ee70869124d1d76a4d9 Former-commit-id:f3a33e3df4
[formerlyf7182ae9c7
] [formerlyec2d211800
[formerly 3f3c778d6f3c5ced13f778746c6a9a46f72c396c]] Former-commit-id:ec2d211800
Former-commit-id:cbd3bfacfa
This commit is contained in:
parent
da1f3fe29b
commit
3b41cd02f4
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.AbstractHandler;
|
||||||
import org.eclipse.core.commands.ExecutionEvent;
|
import org.eclipse.core.commands.ExecutionEvent;
|
||||||
import org.eclipse.core.commands.ExecutionException;
|
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;
|
import com.raytheon.viz.ui.dialogs.SetTimeDialog;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -39,6 +36,9 @@ import com.raytheon.viz.ui.dialogs.SetTimeDialog;
|
||||||
* Date Ticket# Engineer Description
|
* Date Ticket# Engineer Description
|
||||||
* ------------ ---------- ----------- --------------------------
|
* ------------ ---------- ----------- --------------------------
|
||||||
* Nov 30,2007 461 bphillip Initial Creation
|
* 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>
|
* </pre>
|
||||||
*
|
*
|
||||||
|
@ -49,19 +49,10 @@ public class ShowTimeDialog extends AbstractHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
public Object execute(ExecutionEvent arg0) throws ExecutionException {
|
||||||
|
|
||||||
if (CAVEMode.getMode() == CAVEMode.PRACTICE) {
|
|
||||||
if (!SetTimeDialog.getInstance().isOpen()) {
|
if (!SetTimeDialog.getInstance().isOpen()) {
|
||||||
SetTimeDialog.getInstance().open();
|
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");
|
|
||||||
}
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue