From f3a33e3df482839b4815bd7112dacdc27caedc95 Mon Sep 17 00:00:00 2001 From: David Gillingham Date: Thu, 23 Aug 2012 11:21:23 -0500 Subject: [PATCH] Issue #1087: Enable DRT for CAVE operational mode. Change-Id: I8d9992b2fd5b6ddaec447ee70869124d1d76a4d9 Former-commit-id: ec2d2118001b570c82979e1b36249d69032713db [formerly 3f3c778d6f3c5ced13f778746c6a9a46f72c396c] Former-commit-id: f7182ae9c7ad4ae500cdb90646f26c9415086976 --- .../viz/ui/actions/ShowTimeDialog.java | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/cave/com.raytheon.viz.ui/src/com/raytheon/viz/ui/actions/ShowTimeDialog.java b/cave/com.raytheon.viz.ui/src/com/raytheon/viz/ui/actions/ShowTimeDialog.java index 84c1236cd6..970b2930bb 100644 --- a/cave/com.raytheon.viz.ui/src/com/raytheon/viz/ui/actions/ShowTimeDialog.java +++ b/cave/com.raytheon.viz.ui/src/com/raytheon/viz/ui/actions/ShowTimeDialog.java @@ -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. * * * @@ -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; } }