tmf: Fix StringIndexOutOfBoundsException in time graph
authorPatrick Tasse <patrick.tasse@gmail.com>
Mon, 19 Aug 2013 16:48:40 +0000 (12:48 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Mon, 19 Aug 2013 18:45:47 +0000 (14:45 -0400)
commit407bfdd593aeb509b05cf886924d15b20cfd9bdb
tree1c2471516c596b12c64afeb6144120696a3b3503
parent2f91d29c3b0335064c9a01bcb8ad466b83d3c6bc
tmf: Fix StringIndexOutOfBoundsException in time graph

The Utils.formatNs method is fixed to not throw an exception when the
parameter is Long.MIN_VALUE.

The TimeGraphViewer is modified to ensure the time range variables are
kept to 0 when there is no valid time range set (including when the
requested time range is invalid as in [+inf,-inf]). The range is
prevented from going out of bounds due to adjustment for the minimum
time interval.

The TimeGraphControl is modified to disable mouse time selection and
status line updates when the time range is 0.

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