/*******************************************************************************
- * Copyright (c) 2014 École Polytechnique de Montréal
+ * Copyright (c) 2014, 2016 École Polytechnique de Montréal
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
import org.eclipse.tracecompass.tmf.analysis.xml.core.stateprovider.TmfXmlStrings;
import org.eclipse.tracecompass.tmf.analysis.xml.ui.views.timegraph.XmlEntry.EntryDisplayType;
import org.eclipse.tracecompass.tmf.core.statesystem.ITmfAnalysisModuleWithStateSystems;
-import org.eclipse.tracecompass.tmf.core.statesystem.TmfStateSystemAnalysisModule;
import org.eclipse.tracecompass.tmf.core.trace.ITmfTrace;
import org.eclipse.tracecompass.tmf.core.trace.TmfTraceManager;
import org.eclipse.tracecompass.tmf.core.trace.TmfTraceUtils;
// ------------------------------------------------------------------------
@Override
- protected void buildEventList(ITmfTrace trace, ITmfTrace parentTrace, IProgressMonitor monitor) {
+ protected void buildEntryList(ITmfTrace trace, ITmfTrace parentTrace, IProgressMonitor monitor) {
/*
* Get the view element from the XML file. If the element can't be
return;
}
- Set<ITmfAnalysisModuleWithStateSystems> stateSystemModules = new HashSet<>();
+ Set<@NonNull ITmfAnalysisModuleWithStateSystems> stateSystemModules = new HashSet<>();
if (analysisIds.isEmpty()) {
/*
* No analysis specified, take all state system analysis modules
if (!status.isOK()) {
return;
}
- if (module instanceof TmfStateSystemAnalysisModule) {
- ((TmfStateSystemAnalysisModule) module).waitForInitialization();
+ if (!module.waitForInitialization()) {
+ return;
}
for (ITmfStateSystem ssq : module.getStateSystems()) {
ssq.waitUntilBuilt();
}
}
- putEntryList(trace, new ArrayList<TimeGraphEntry>(entryList));
+ addToEntryList(parentTrace, new ArrayList<TimeGraphEntry>(entryList));
if (parentTrace.equals(getTrace())) {
refresh();
* attribute
*/
ITmfXmlStateAttribute display = fFactory.createStateAttribute(displayEl, parentEntry);
- int displayQuark = display.getAttributeQuark(quark);
+ int displayQuark = display.getAttributeQuark(quark, null);
if (displayQuark == IXmlStateSystemContainer.ERROR_QUARK) {
return new XmlEntry(quark, parentEntry.getTrace(),
String.format("Unknown display quark for %s", ss.getAttributeName(quark)), ss); //$NON-NLS-1$