This allows to reinitialize the data even though the trace is already loaded.
It is to match the TimeGraphView's rebuild() method, so that XML defined XY
chart can be used with more than one view element.
Change-Id: Ib0573ea210bdd7ffb1c6dc550afb2cd021bd16d0
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/29080
Reviewed-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Tested-by: Hudson CI
@Override
public void loadTrace(ITmfTrace trace) {
super.loadTrace(trace);
+ reinitialize();
+ }
+
+ /**
+ * Forces a reinitialization of the data sources, even if it has already
+ * been initialized for this trace before
+ *
+ * @since 3.1
+ */
+ protected void reinitialize() {
fSeriesValues.clear();
Thread thread = new Thread() {
@Override