~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/EnableEventOnSessionHandler.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
 
2
 * Copyright (c) 2012, 2013 Ericsson
3
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
8
8
 *
9
9
 * Contributors:
10
10
 *   Bernd Hufmann - Initial API and implementation
 
11
 *   Bernd Hufmann - Updated for support of LTTng Tools 2.1
11
12
 **********************************************************************/
12
13
package org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers;
13
14
 
43
44
    //-------------------------------------------------------------------------
44
45
    // Operations
45
46
    // ------------------------------------------------------------------------
46
 
    /*
47
 
     * (non-Javadoc)
48
 
     * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.BaseEnableEventHandler#enableEvents(org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.CommandParameter, java.util.List, boolean, org.eclipse.core.runtime.IProgressMonitor)
49
 
     */
 
47
 
50
48
    @Override
51
 
    public void enableEvents(CommandParameter param, List<String> eventNames, boolean isKernel, IProgressMonitor monitor) throws ExecutionException {
52
 
        param.getSession().enableEvents(eventNames, isKernel, monitor);
 
49
    public void enableEvents(CommandParameter param, List<String> eventNames, boolean isKernel, String filterExpression, IProgressMonitor monitor) throws ExecutionException {
 
50
        param.getSession().enableEvents(eventNames, isKernel, filterExpression, monitor);
53
51
    }
54
52
 
55
 
    /*
56
 
     * (non-Javadoc)
57
 
     * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.BaseEnableEventHandler#enableSyscalls(org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.CommandParameter, org.eclipse.core.runtime.IProgressMonitor)
58
 
     */
59
53
    @Override
60
54
    public void enableSyscalls(CommandParameter param, IProgressMonitor monitor) throws ExecutionException {
61
55
        param.getSession().enableSyscalls(monitor);
62
56
    }
63
57
 
64
 
    /*
65
 
     * (non-Javadoc)
66
 
     * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.BaseEnableEventHandler#enableProbe(org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.CommandParameter, java.lang.String, boolean, java.lang.String, org.eclipse.core.runtime.IProgressMonitor)
67
 
     */
68
58
    @Override
69
59
    public void enableProbe(CommandParameter param, String eventName, boolean isFunction, String probe, IProgressMonitor monitor) throws ExecutionException {
70
60
        param.getSession().enableProbe(eventName, isFunction, probe, monitor);
71
61
    }
72
62
 
73
 
    /*
74
 
     * (non-Javadoc)
75
 
     * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.BaseEnableEventHandler#enableLogLevel(org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.CommandParameter, java.lang.String, org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.LogLevelType, org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.TraceLogLevel, org.eclipse.core.runtime.IProgressMonitor)
76
 
     */
77
63
    @Override
78
 
    public void enableLogLevel(CommandParameter param, String eventName, LogLevelType logLevelType, TraceLogLevel level, IProgressMonitor monitor) throws ExecutionException {
79
 
        param.getSession().enableLogLevel(eventName, logLevelType, level, monitor);
 
64
    public void enableLogLevel(CommandParameter param, String eventName, LogLevelType logLevelType, TraceLogLevel level, String filterExpression, IProgressMonitor monitor) throws ExecutionException {
 
65
        param.getSession().enableLogLevel(eventName, logLevelType, level, filterExpression, monitor);
80
66
    }
81
67
 
82
 
 
83
 
    /*
84
 
     * (non-Javadoc)
85
 
     * @see org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.BaseEnableEventHandler#getDomain(org.eclipse.linuxtools.internal.lttng2.ui.views.control.handlers.CommandParameter)
86
 
     */
87
68
    @Override
88
69
    public TraceDomainComponent getDomain(CommandParameter param) {
89
70
        return null;
90
71
    }
91
72
 
92
 
    /*
93
 
     * (non-Javadoc)
94
 
     * @see org.eclipse.core.commands.AbstractHandler#isEnabled()
95
 
     */
96
73
    @Override
97
74
    public boolean isEnabled() {
98
75
        // Get workbench page for the Control View