/**********************************************************************
- * 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
* @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;
* @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();
final CommandParameter param = fParam.clone();
final IEnableChannelDialog dialog = TraceControlDialogFactory.getInstance().getEnableChannelDialog();
+ dialog.setTargetNodeComponent(param.getSession().getTargetNode());
dialog.setDomainComponent(getDomain(param));
+ dialog.setHasKernel(param.getSession().hasKernelProvider());
if (dialog.open() != Window.OK) {
return null;