From fc46308738dd5c4e59ffebca739c8725a1e2660e Mon Sep 17 00:00:00 2001 From: Mike Duff Date: Wed, 10 Jul 2013 11:42:57 -0500 Subject: [PATCH] Issue #2166 - Select the site before opening Hydro TS Control dialog Change-Id: I2220de3092430e6af36f9e3c2a4c8f0fa3b00163 Former-commit-id: 8a963939a8fe863ee8189fc36e8c56508266b371 [formerly bcf0b1285e46d62695515051cbec17945c2646f0] Former-commit-id: afe9e049b36d392688608af61c82f402af74125f --- .../raytheon/viz/hydro/timeseries/TimeSeriesAction.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cave/com.raytheon.viz.hydro/src/com/raytheon/viz/hydro/timeseries/TimeSeriesAction.java b/cave/com.raytheon.viz.hydro/src/com/raytheon/viz/hydro/timeseries/TimeSeriesAction.java index 53ac5a315f..1981b0f6b4 100644 --- a/cave/com.raytheon.viz.hydro/src/com/raytheon/viz/hydro/timeseries/TimeSeriesAction.java +++ b/cave/com.raytheon.viz.hydro/src/com/raytheon/viz/hydro/timeseries/TimeSeriesAction.java @@ -26,6 +26,8 @@ import org.eclipse.core.commands.AbstractHandler; import org.eclipse.core.commands.ExecutionEvent; import org.eclipse.core.commands.ExecutionException; +import com.raytheon.viz.hydrocommon.HydroDisplayManager; + /** * Action for unimplemented features. To be used temporarily until final * behavior is implemented. @@ -38,6 +40,7 @@ import org.eclipse.core.commands.ExecutionException; * ------------ ---------- ----------- -------------------------- * 6/27/06 lvenable Initial Creation. * 02/05/2013 1578 rferrel Changes for non-blocking singleton TimeSeriesDlg. + * 07/10/2013 2166 mpduff Select the site. * * * @@ -48,7 +51,9 @@ public class TimeSeriesAction extends AbstractHandler { @Override public Object execute(ExecutionEvent arg0) throws ExecutionException { - TimeSeriesDlg.getInstance().open(); + TimeSeriesDlg dlg = TimeSeriesDlg.getInstance(); + dlg.updateAndOpen(HydroDisplayManager.getInstance().getCurrentLid(), + true); return null; }