projects
/
deliverable
/
tracecompass.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctf: Move CTF plugins to Java 7 and fix warnings
[deliverable/tracecompass.git]
/
org.eclipse.linuxtools.lttng2.ui
/
src
/
org
/
eclipse
/
linuxtools
/
internal
/
lttng2
/
ui
/
views
/
control
/
handlers
/
BaseEnableChannelHandler.java
diff --git
a/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableChannelHandler.java
b/org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableChannelHandler.java
index 8d08305c1c4a3b67b47b556a13e2c0ad9e835ce1..44406c63ef0ac6d24eddbf589d0e6e47b1825c26 100644
(file)
--- a/
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableChannelHandler.java
+++ b/
org.eclipse.linuxtools.lttng2.ui/src/org/eclipse/linuxtools/internal/lttng2/ui/views/control/handlers/BaseEnableChannelHandler.java
@@
-1,5
+1,5
@@
/**********************************************************************
/**********************************************************************
- * Copyright (c) 2012 Ericsson
+ * Copyright (c) 2012
, 2013
Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
@@
-65,7
+65,7
@@
abstract class BaseEnableChannelHandler extends BaseControlViewHandler {
* @throws ExecutionException
* If something goes wrong when enabling the channel
*/
* @throws ExecutionException
* If something goes wrong when enabling the channel
*/
-
abstract public
void enableChannel(CommandParameter param,
+
public abstract
void enableChannel(CommandParameter param,
List<String> channelNames, IChannelInfo info, boolean isKernel,
IProgressMonitor monitor) throws ExecutionException;
List<String> channelNames, IChannelInfo info, boolean isKernel,
IProgressMonitor monitor) throws ExecutionException;
@@
-73,12
+73,8
@@
abstract class BaseEnableChannelHandler extends BaseControlViewHandler {
* @param param - a parameter instance with data for the command execution
* @return returns the relevant domain (null if domain is not known)
*/
* @param param - a parameter instance with data for the command execution
* @return returns the relevant domain (null if domain is not known)
*/
-
abstract public
TraceDomainComponent getDomain(CommandParameter param);
+
public abstract
TraceDomainComponent getDomain(CommandParameter param);
- /*
- * (non-Javadoc)
- * @see org.eclipse.core.commands.AbstractHandler#execute(org.eclipse.core.commands.ExecutionEvent)
- */
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
fLock.lock();
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
fLock.lock();
@@
-86,7
+82,9
@@
abstract class BaseEnableChannelHandler extends BaseControlViewHandler {
final CommandParameter param = fParam.clone();
final IEnableChannelDialog dialog = TraceControlDialogFactory.getInstance().getEnableChannelDialog();
final CommandParameter param = fParam.clone();
final IEnableChannelDialog dialog = TraceControlDialogFactory.getInstance().getEnableChannelDialog();
+ dialog.setTargetNodeComponent(param.getSession().getTargetNode());
dialog.setDomainComponent(getDomain(param));
dialog.setDomainComponent(getDomain(param));
+ dialog.setHasKernel(param.getSession().hasKernelProvider());
if (dialog.open() != Window.OK) {
return null;
if (dialog.open() != Window.OK) {
return null;
This page took
0.024594 seconds
and
5
git commands to generate.