Add support for LTTng 2.0 command add-context
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui / src / org / eclipse / linuxtools / internal / lttng2 / ui / views / control / handlers / EventCommandParameter.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.TraceEventComponent;
15 import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
16
17 /**
18 * Class containing parameter for a command execution.
19 */
20 public class EventCommandParameter extends CommandParameter {
21
22 // ------------------------------------------------------------------------
23 // Attributes
24 // ------------------------------------------------------------------------
25 private TraceEventComponent fEvent;
26
27 // ------------------------------------------------------------------------
28 // Constructors
29 // ------------------------------------------------------------------------
30
31 /**
32 * Constructor
33 * @param session - a trace session component.
34 * @param event - a trace event component
35 */
36 public EventCommandParameter(TraceSessionComponent session, TraceEventComponent event) {
37 super(session);
38 fEvent = event;
39 }
40
41 // ------------------------------------------------------------------------
42 // Accessors
43 // ------------------------------------------------------------------------
44
45 /**
46 * @return the trace event component
47 */
48 public TraceEventComponent getEvent() {
49 return fEvent;
50 }
51
52 // ------------------------------------------------------------------------
53 // Operations
54 // ------------------------------------------------------------------------
55
56 /*
57 * (non-Javadoc)
58 * @see java.lang.Object#clone()
59 */
60 @Override
61 public EventCommandParameter clone() {
62 EventCommandParameter clone = (EventCommandParameter) super.clone();
63 clone.fEvent = fEvent;
64 return clone;
65 }
66 }
This page took 0.046302 seconds and 6 git commands to generate.