tmf: Clamp single time selection to time graph bounds
authorPatrick Tasse <patrick.tasse@gmail.com>
Thu, 10 Sep 2015 15:12:03 +0000 (11:12 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Fri, 11 Sep 2015 23:04:27 +0000 (19:04 -0400)
commitc534b0a534b05eb1f4088ba64fbba6e98a716dc0
tree6cc19d2ae3e2ed8810cf875243f9dff9e63c1082
parent53ffb5b25e269ea3567f167cfc07b67cfd6c934a
tmf: Clamp single time selection to time graph bounds

When the selection is updated to a single time, it should be clamped to
the current bounds. This will make it consistent with the handling of a
selection range update.

Additionally, when the selection range is updated with possible
notification, the check to see if the selection range has changed is now
made by comparing the clamped values, not the received values. Although,
in practice, since this update is triggered internally, it should not be
received with out-of-bounds values.

Change-Id: Iee93f7ef401fa6efc087aa03687de51f7f994590
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/55671
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphViewer.java
This page took 0.028988 seconds and 5 git commands to generate.