Update internal packages export in LTTng 2.0 control + update java doc
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / handlers / StopHandler.java
CommitLineData
bbb3538a
BH
1/**********************************************************************
2 * Copyright (c) 2012 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 **********************************************************************/
115b4a01 12package org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers;
bbb3538a
BH
13
14import org.eclipse.core.commands.ExecutionException;
15import org.eclipse.core.runtime.IProgressMonitor;
9315aeee 16import org.eclipse.linuxtools.internal.lttng2.core.control.model.TraceSessionState;
115b4a01 17import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
bbb3538a
BH
18
19/**
bbb3538a
BH
20 * <p>
21 * Command handler implementation to stop one or more trace sessions.
22 * </p>
dbd4432d
BH
23 *
24 * @author Bernd Hufmann
bbb3538a
BH
25 */
26public class StopHandler extends ChangeSessionStateHandler {
27
28 // ------------------------------------------------------------------------
29 // Accessors
30 // ------------------------------------------------------------------------
31 /*
32 * (non-Javadoc)
115b4a01 33 * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.ChangeSessionStateHandler#getNewState()
bbb3538a
BH
34 */
35 @Override
36 public TraceSessionState getNewState() {
37 return TraceSessionState.INACTIVE;
38 }
39
40 // ------------------------------------------------------------------------
41 // Operations
42 // ------------------------------------------------------------------------
43 /*
44 * (non-Javadoc)
115b4a01 45 * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.ChangeSessionStateHandler#changeState(org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent, org.eclipse.core.runtime.IProgressMonitor)
bbb3538a
BH
46 */
47 @Override
48 public void changeState(TraceSessionComponent session, IProgressMonitor monitor) throws ExecutionException {
49 session.stopSession(monitor);
50 }
51}
This page took 0.040227 seconds and 5 git commands to generate.