1 /**********************************************************************
2 * Copyright (c) 2012 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.handlers
;
14 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.impl
.TraceChannelComponent
;
15 import org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.model
.impl
.TraceSessionComponent
;
18 * Class containing parameter for the command execution.
20 public class ChannelCommandParameter
extends CommandParameter
implements Cloneable
{
22 // ------------------------------------------------------------------------
24 // ------------------------------------------------------------------------
26 private TraceChannelComponent fChannel
;
29 // ------------------------------------------------------------------------
31 // ------------------------------------------------------------------------
35 * @param session - a trace session component.
36 * @param channel - a trace channel component
38 public ChannelCommandParameter(TraceSessionComponent session
, TraceChannelComponent channel
) {
43 // ------------------------------------------------------------------------
45 // ------------------------------------------------------------------------
48 * @return the trace channel component
50 public TraceChannelComponent
getChannel() {
54 // ------------------------------------------------------------------------
56 // ------------------------------------------------------------------------
60 * @see java.lang.Object#clone()
63 public ChannelCommandParameter
clone() {
64 ChannelCommandParameter clone
= (ChannelCommandParameter
) super.clone();
65 clone
.fChannel
= fChannel
;