Issue #2076 - fix hydro TS control dialog station list selection and graph button enabling

Change-Id: I4e53b03fe12453dd8c78231c20fba6889833db9e

Former-commit-id: 632e7e9ba1 [formerly 7e9c529c60] [formerly 632e7e9ba1 [formerly 7e9c529c60] [formerly 9a4f0e8679 [formerly ae2c0314eef5998aabcf9323ef33de7cdf378a7f]]]
Former-commit-id: 9a4f0e8679
Former-commit-id: ca96e8fd1e [formerly 779cc0f765]
Former-commit-id: 3bf6be1299
This commit is contained in:
Mike Duff 2013-06-06 17:12:16 -05:00
parent 18fdb31920
commit 089bfef8ed

View file

@ -121,6 +121,7 @@ import com.raytheon.viz.hydrocommon.util.StnClassSyncUtil;
* 30 Jan 2013 15264 wkwock Fix the missing group_definition.cfg file crash * 30 Jan 2013 15264 wkwock Fix the missing group_definition.cfg file crash
* 05 Feb 2013 1578 rferrel Dialog made non-blocking and a singleton. * 05 Feb 2013 1578 rferrel Dialog made non-blocking and a singleton.
* 06 May 2013 1976 mpduff Code cleanup. * 06 May 2013 1976 mpduff Code cleanup.
* 06 Jun 2013 2076 mpduff Fix station list selection and graph button enabling.
* </pre> * </pre>
* *
* @author lvenable * @author lvenable
@ -678,6 +679,8 @@ public class TimeSeriesDlg extends CaveHydroSWTDialog {
if (rsc instanceof MultiPointResource) { if (rsc instanceof MultiPointResource) {
((MultiPointResource) rsc).setTs(this); ((MultiPointResource) rsc).setTs(this);
} }
checkBottomButtons();
} }
/** /**
@ -1460,7 +1463,9 @@ public class TimeSeriesDlg extends CaveHydroSWTDialog {
while (iter2.hasNext()) { while (iter2.hasNext()) {
if (idRdo.getSelection()) { if (idRdo.getSelection()) {
if (iter2.next().equalsIgnoreCase(currentLid)) { if (iter2.next().equalsIgnoreCase(currentLid)) {
topDataList.setSelection(iter2.previousIndex()); // Bug with show selection requires the select(0) first.
topDataList.select(0);
topDataList.select(iter2.previousIndex());
topDataList.showSelection(); topDataList.showSelection();
/* set to null so we don't enter this block again */ /* set to null so we don't enter this block again */
@ -2606,6 +2611,5 @@ public class TimeSeriesDlg extends CaveHydroSWTDialog {
@Override @Override
protected void preOpened() { protected void preOpened() {
super.preOpened(); super.preOpened();
checkBottomButtons();
} }
} }