gdbtrace: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui / src / org / eclipse / linuxtools / internal / lttng2 / control / ui / views / handlers / StartHandler.java
1 /**********************************************************************
2 * Copyright (c) 2012, 2013 Ericsson
3 *
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *
9 * Contributors:
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org.eclipse.linuxtools.internal.lttng2.control.ui.views.handlers;
13
14 import org.eclipse.core.commands.ExecutionException;
15 import org.eclipse.core.runtime.IProgressMonitor;
16 import org.eclipse.linuxtools.internal.lttng2.control.core.model.TraceSessionState;
17 import org.eclipse.linuxtools.internal.lttng2.control.ui.views.model.impl.TraceSessionComponent;
18
19 /**
20 * <p>
21 * Command handler implementation to start one or more trace sessions.
22 * </p>
23 *
24 * @author Bernd Hufmann
25 */
26 public class StartHandler extends ChangeSessionStateHandler {
27
28 // ------------------------------------------------------------------------
29 // Accessors
30 // ------------------------------------------------------------------------
31
32 @Override
33 public TraceSessionState getNewState() {
34 return TraceSessionState.ACTIVE;
35 }
36
37 // ------------------------------------------------------------------------
38 // Operations
39 // ------------------------------------------------------------------------
40
41 @Override
42 public void changeState(TraceSessionComponent session, IProgressMonitor monitor) throws ExecutionException {
43 session.startSession(monitor);
44 }
45 }
This page took 0.032715 seconds and 5 git commands to generate.