tmf: Fix time graph bounds reset on refresh and ignoring child entries
authorPatrick Tasse <patrick.tasse@gmail.com>
Fri, 20 Feb 2015 15:39:25 +0000 (10:39 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Tue, 24 Feb 2015 19:16:33 +0000 (14:16 -0500)
commit50d36521f4fbaf9d637d12f30b64dd6b6a746c7c
treefa7410c2b959521d54faf416b4d308698dbad61d
parentece2fc5fb6f7289e415f528c1ba2131096c352f0
tmf: Fix time graph bounds reset on refresh and ignoring child entries

Calling refresh() or setInput() should not reset the bounds if they have
been set to specific values by the user.

When determining bounds based on the input time graph entries, only the
root entries were considered. All roots and their recursive children
should be considered.

The value SWT.DEFAULT can now be used as a time bound to indicate that
the bound should be set according to the input time graph entries. For
any other value the bound will be fixed and unaffected by the input.

This setting can be applied independently for each bound.

The distinction between user-specified and actual bounds is made clearer
in the API Javadoc.

Change-Id: Ia79d35d41ed08cf7475807f9d352b1931196e5d5
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/42330
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphViewer.java
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/model/TimeGraphEntry.java
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/ITimeDataProvider.java
org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
This page took 0.026782 seconds and 5 git commands to generate.