gdbtrace: Move plugins to the Trace Compass namespace
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui / src / org / eclipse / linuxtools / internal / lttng2 / control / ui / views / handlers / CommandParameter.java
CommitLineData
c56972bb 1/**********************************************************************
11252342
AM
2 * Copyright (c) 2012, 2013 Ericsson
3 *
c56972bb
BH
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
11252342
AM
8 *
9 * Contributors:
c56972bb
BH
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
8e8c0226 12package org.eclipse.linuxtools.internal.lttng2.control.ui.views.handlers;
c56972bb 13
8e8c0226 14import org.eclipse.linuxtools.internal.lttng2.control.ui.views.model.impl.TraceSessionComponent;
c56972bb
BH
15
16/**
dbd4432d 17 * Class containing parameter for the command execution.
11252342
AM
18 *
19 * @author Bernd Hufmann
c56972bb
BH
20 */
21public class CommandParameter implements Cloneable {
22
23 // ------------------------------------------------------------------------
24 // Attributes
25 // ------------------------------------------------------------------------
26
27 /**
28 * The trace session component.
29 */
30 private TraceSessionComponent fSession;
31
32 // ------------------------------------------------------------------------
33 // Constructors
34 // ------------------------------------------------------------------------
35
36 /**
11252342 37 * Constructor
c56972bb
BH
38 * @param session a trace session component.
39 */
40 public CommandParameter(TraceSessionComponent session) {
41 fSession = session;
42 }
43
44 // ------------------------------------------------------------------------
45 // Accessors
46 // ------------------------------------------------------------------------
47
48 /**
49 * @return the session component.
50 */
51 public TraceSessionComponent getSession() {
52 return fSession;
53 }
54
55 // ------------------------------------------------------------------------
56 // Operations
57 // ------------------------------------------------------------------------
58
c56972bb
BH
59 @Override
60 public CommandParameter clone() {
61 CommandParameter clone = null;
62 try {
63 clone = (CommandParameter) super.clone();
64 clone.fSession = fSession;
65 } catch (CloneNotSupportedException e) {
66 }
67 return clone;
68 }
69}
This page took 0.060185 seconds and 5 git commands to generate.