import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
-import org.eclipse.linuxtools.internal.lttng2.stubs.dialogs.CreateChannelDialogStub;
+import org.eclipse.linuxtools.internal.lttng2.stubs.dialogs.EnableChannelDialogStub;
import org.eclipse.linuxtools.internal.lttng2.stubs.dialogs.CreateSessionDialogStub;
import org.eclipse.linuxtools.internal.lttng2.stubs.dialogs.DestroyConfirmDialogStub;
import org.eclipse.linuxtools.internal.lttng2.stubs.dialogs.EnableEventsDialogStub;
// ------------------------------------------------------------------------
// Enable default channel on created session above
// ------------------------------------------------------------------------
- CreateChannelDialogStub channelStub = new CreateChannelDialogStub();
+ EnableChannelDialogStub channelStub = new EnableChannelDialogStub();
channelStub.setIsKernel(false);
- TraceControlDialogFactory.getInstance().setCreateChannelDialog(channelStub);
+ TraceControlDialogFactory.getInstance().setEnableChannelDialog(channelStub);
- fFacility.executeCommand(session, "createChannelOnSession");
+ fFacility.executeCommand(session, "enableChannelOnSession");
// Verify that Kernel domain was created
ITraceControlComponent[] domains = session.getChildren();
info.setReadTimer(200);
channelStub.setChannelInfo(info);
- fFacility.executeCommand(domains[0], "createChannelOnDomain");
+ fFacility.executeCommand(domains[0], "enableChannelOnDomain");
// Get Kernel domain component instance
domains = session.getChildren();