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
.TraceSessionComponent
;
17 * Class containing parameter for the command execution.
19 * @author Bernd Hufmann
21 public class CommandParameter
implements Cloneable
{
23 // ------------------------------------------------------------------------
25 // ------------------------------------------------------------------------
28 * The trace session component.
30 private TraceSessionComponent fSession
;
32 // ------------------------------------------------------------------------
34 // ------------------------------------------------------------------------
38 * @param session a trace session component.
40 public CommandParameter(TraceSessionComponent session
) {
44 // ------------------------------------------------------------------------
46 // ------------------------------------------------------------------------
49 * @return the session component.
51 public TraceSessionComponent
getSession() {
55 // ------------------------------------------------------------------------
57 // ------------------------------------------------------------------------
61 * @see java.lang.Object#clone()
64 public CommandParameter
clone() {
65 CommandParameter clone
= null;
67 clone
= (CommandParameter
) super.clone();
68 clone
.fSession
= fSession
;
69 } catch (CloneNotSupportedException e
) {