import java.util.HashMap;
import java.util.Map;
-import org.eclipse.linuxtools.lttng.control.LttngCoreProviderFactory;
-import org.eclipse.linuxtools.lttng.event.LttngSyntheticEvent;
import org.eclipse.linuxtools.lttng.model.LTTngTreeNode;
import org.eclipse.linuxtools.lttng.state.LttngStateException;
-import org.eclipse.linuxtools.lttng.state.model.LttngTraceState;
-import org.eclipse.linuxtools.lttng.state.model.StateModelFactory;
import org.eclipse.linuxtools.lttng.state.trace.IStateTraceManager;
import org.eclipse.linuxtools.lttng.state.trace.StateTraceManager;
-import org.eclipse.linuxtools.tmf.component.TmfEventProvider;
import org.eclipse.linuxtools.tmf.trace.ITmfTrace;
/**
// =======================================================================
private static final Map<String, IStateTraceManager> instanceBook = new HashMap<String, IStateTraceManager>();
- private static TmfEventProvider<LttngSyntheticEvent> feventProvider = null;
+
// ========================================================================
// Methods
// =======================================================================
return instanceBook.get(traceUniqueId);
}
- LttngTraceState traceModel = StateModelFactory.getStateEntryInstance();
+ // LttngTraceState traceModel =
+ // StateModelFactory.getStateEntryInstance();
IStateTraceManager manager = null;
- if (feventProvider == null) {
- feventProvider = LttngCoreProviderFactory.getEventProvider();
- }
-
// catch construction problems
Long id = 0L;
LTTngTreeNode parent = null;
try {
- manager = new StateTraceManager(id, parent, traceUniqueId, trace,
- traceModel,
- feventProvider);
+ manager = new StateTraceManager(id, parent, traceUniqueId, trace);
} catch (LttngStateException e) {
e.printStackTrace();
}