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