control: partly revert commit 0e7ea8ac and use clone in handlers
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / handlers / EventCommandParameter.java
CommitLineData
b793fbe1 1/**********************************************************************
68d1057b 2 * Copyright (c) 2012, 2015 Ericsson
11252342 3 *
b793fbe1
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:
b793fbe1
BH
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
9bc60be7 12package org.eclipse.tracecompass.internal.lttng2.control.ui.views.handlers;
b793fbe1 13
68d1057b 14import org.eclipse.jdt.annotation.NonNullByDefault;
9bc60be7
AM
15import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceEventComponent;
16import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceSessionComponent;
b793fbe1
BH
17
18/**
dbd4432d 19 * Class containing parameter for a command execution.
11252342 20 *
dbd4432d 21 * @author Bernd Hufmann
b793fbe1 22 */
68d1057b 23@NonNullByDefault
b793fbe1
BH
24public class EventCommandParameter extends CommandParameter {
25
26 // ------------------------------------------------------------------------
27 // Attributes
28 // ------------------------------------------------------------------------
11252342 29
b793fbe1
BH
30 private TraceEventComponent fEvent;
31
32 // ------------------------------------------------------------------------
33 // Constructors
34 // ------------------------------------------------------------------------
35
36 /**
37 * Constructor
38 * @param session - a trace session component.
39 * @param event - a trace event component
40 */
41 public EventCommandParameter(TraceSessionComponent session, TraceEventComponent event) {
42 super(session);
43 fEvent = event;
44 }
45
46 // ------------------------------------------------------------------------
47 // Accessors
48 // ------------------------------------------------------------------------
49
50 /**
51 * @return the trace event component
52 */
53 public TraceEventComponent getEvent() {
54 return fEvent;
55 }
b8dbc09c
BH
56
57 // ------------------------------------------------------------------------
58 // Cloneable interface
59 // ------------------------------------------------------------------------
60 @Override
61 public EventCommandParameter clone() {
62 EventCommandParameter clone = (EventCommandParameter) super.clone();
63 clone.fEvent = fEvent;
64 return clone;
65 }
66
b793fbe1 67}
This page took 0.0797330000000001 seconds and 5 git commands to generate.