*/
@TmfSignalHandler
public synchronized void traceClosed(final TmfTraceClosedSignal signal) {
- TmfTraceContext ret = fTraces.remove(signal.getTrace());
- if (ret == null) {
- throw new RuntimeException();
- }
+ fTraces.remove(signal.getTrace());
if (fTraces.size() == 0) {
fCurrentTrace = null;
/*
import org.eclipse.linuxtools.tmf.core.event.ITmfEvent;
import org.eclipse.linuxtools.tmf.core.exceptions.TmfTraceException;
import org.eclipse.linuxtools.tmf.core.signal.TmfTraceClosedSignal;
+import org.eclipse.linuxtools.tmf.core.signal.TmfTraceOpenedSignal;
import org.eclipse.linuxtools.tmf.core.signal.TmfTraceSelectedSignal;
import org.eclipse.linuxtools.tmf.core.trace.ITmfEventParser;
import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
final ITmfTrace traces[] = new ITmfTrace[1];
traces[0] = fTrace;
fExperiment = new TmfExperiment(ITmfEvent.class, "TestExperiment", traces);
+ fTrace.broadcast(new TmfTraceOpenedSignal(this, fExperiment, null));
fTrace.broadcast(new TmfTraceSelectedSignal(this, fExperiment));
if (wait) {
while (fExperiment.getNbEvents() == 0) {