Issue #2166 - Select the site before opening Hydro TS Control dialog

Change-Id: I2220de3092430e6af36f9e3c2a4c8f0fa3b00163

Former-commit-id: d34d1a83e3 [formerly bcd4a0aff1] [formerly 8a963939a8] [formerly d34d1a83e3 [formerly bcd4a0aff1] [formerly 8a963939a8] [formerly afe9e049b3 [formerly 8a963939a8 [formerly bcf0b1285e46d62695515051cbec17945c2646f0]]]]
Former-commit-id: afe9e049b3
Former-commit-id: 6a9ef8c64e [formerly a8fd06f8d3] [formerly 92ea947252a95dc424e84118b95d086a15965d25 [formerly fc46308738]]
Former-commit-id: e48cb5c3a7cd213a3c508376405f28e06ccb6369 [formerly 38ed97d48b]
Former-commit-id: 6a0a9400ad
This commit is contained in:
Mike Duff 2013-07-10 11:42:57 -05:00
parent 86372d82f9
commit dfcf2969ce

View file

@ -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.
*
* </pre>
*
@ -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;
}