tmf: Ellipse function names that don't fit in CallStackView
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 30 Jun 2016 21:39:00 +0000 (17:39 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 14 Jul 2016 16:40:00 +0000 (12:40 -0400)
commit2984a46655de9969a26868a7ba9ff68a1012f590
treef893d51b6b3d87dd1c7b8ab3c1dcd3a2fffcc3c0
parent6f8332c4beb8b962b8561b117cd3fb722cc3e507
tmf: Ellipse function names that don't fit in CallStackView

Add "..." to function names that get cut due to short rectangles
in the call stack view, and avoid printing anything if at least
1 character + the "..." won't fit.

Also, instead of starting from the full string length and going
down to find a fitting string, start from 1 and work our way
up. This will better handle the worst case, which is lots of
very small states in a view that all want to print very long
strings.

Bug: 497111

Change-Id: I94ccca31fb890923063f75359ff714721a8b6f68
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Reviewed-on: https://git.eclipse.org/r/76401
Reviewed-by: Hudson CI
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/views/callstack/CallStackPresentationProvider.java
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/Utils.java
This page took 0.024906 seconds and 5 git commands to generate.