~ubuntu-branches/ubuntu/utopic/eclipse-linuxtools/utopic

« back to all changes in this revision

Viewing changes to lttng/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/StopHandler.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2014-05-12 18:11:40 UTC
  • mfrom: (3.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20140512181140-w237r3vsah1tmybz
Tags: 2.2.1-1
* New upstream release.
* Refreshed d/patches.
* Removed eclipse-cdt-valgrind-remote package, all its functionality
  is now provided by eclipse-cdt-profiling-framework-remote.
* Added remove-license-feature.patch.
* Bump Standards-Version to 3.9.5.
* Enable eclipse-changelog package.
* Enable eclipse-rpm-editor package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**********************************************************************
2
 
 * Copyright (c) 2012 Ericsson
3
 
 * 
 
2
 * Copyright (c) 2012, 2013 Ericsson
 
3
 *
4
4
 * All rights reserved. This program and the accompanying materials are
5
5
 * made available under the terms of the Eclipse Public License v1.0 which
6
6
 * accompanies this distribution, and is available at
7
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 
 * 
9
 
 * Contributors: 
 
8
 *
 
9
 * Contributors:
10
10
 *   Bernd Hufmann - Initial API and implementation
11
11
 **********************************************************************/
12
12
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers;
20
20
 * <p>
21
21
 * Command handler implementation to stop one or more trace sessions.
22
22
 * </p>
23
 
 * 
 
23
 *
24
24
 * @author Bernd Hufmann
25
25
 */
26
26
public class StopHandler extends ChangeSessionStateHandler {
28
28
    // ------------------------------------------------------------------------
29
29
    // Accessors
30
30
    // ------------------------------------------------------------------------
31
 
    /*
32
 
     * (non-Javadoc)
33
 
     * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.ChangeSessionStateHandler#getNewState()
34
 
     */
 
31
 
35
32
    @Override
36
33
    public TraceSessionState getNewState() {
37
34
        return TraceSessionState.INACTIVE;
38
35
    }
39
 
    
 
36
 
40
37
    // ------------------------------------------------------------------------
41
38
    // Operations
42
39
    // ------------------------------------------------------------------------
43
 
    /*
44
 
     * (non-Javadoc)
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)
46
 
     */
 
40
 
47
41
    @Override
48
42
    public void changeState(TraceSessionComponent session, IProgressMonitor monitor) throws ExecutionException {
49
43
        session.stopSession(monitor);