import org.eclipse.linuxtools.lttng.core.tracecontrol.model.TraceResource.TraceState;
import org.eclipse.linuxtools.lttng.core.tracecontrol.model.config.TraceConfig;
import org.eclipse.linuxtools.lttng.core.tracecontrol.service.ILttControllerService;
+import org.eclipse.linuxtools.lttng.core.tracecontrol.utility.LiveTraceManager;
import org.eclipse.linuxtools.lttng.ui.LTTngUiPlugin;
import org.eclipse.linuxtools.lttng.ui.tracecontrol.Messages;
import org.eclipse.linuxtools.lttng.ui.tracecontrol.TraceControlConstants;
trace.setTraceState(TraceState.STARTED);
+ if (trace.isNetworkTraceAndStarted()) {
+ LiveTraceManager.setLiveTrace(trace.getTraceConfig().getTracePath(), true);
+ }
+
// Refresh display
ISystemRegistry registry = SystemStartHere.getSystemRegistry();
registry.fireRemoteResourceChangeEvent(ISystemRemoteChangeEvents.SYSTEM_REMOTE_RESOURCE_CHANGED, trace, trace.getParent(), subSystem, null);
service.writeTraceNetwork(trace.getParent().getParent().getName(),
trace.getParent().getName(),
traceConfig.getTraceName(),
+ traceConfig.getTracePath(),
traceConfig.getNumChannel(),
traceConfig.getIsAppend(),
false,