Copyright header update, 2015 edition
[deliverable/tracecompass.git] / org.eclipse.tracecompass.lttng2.control.ui / src / org / eclipse / tracecompass / internal / lttng2 / control / ui / views / handlers / EventCommandParameter.java
1 /**********************************************************************
2 * Copyright (c) 2012, 2014 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.tracecompass.internal.lttng2.control.ui.views.handlers;
13
14 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceEventComponent;
15 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceSessionComponent;
16
17 /**
18 * Class containing parameter for a command execution.
19 *
20 * @author Bernd Hufmann
21 */
22 public class EventCommandParameter extends CommandParameter {
23
24 // ------------------------------------------------------------------------
25 // Attributes
26 // ------------------------------------------------------------------------
27
28 private TraceEventComponent fEvent;
29
30 // ------------------------------------------------------------------------
31 // Constructors
32 // ------------------------------------------------------------------------
33
34 /**
35 * Constructor
36 * @param session - a trace session component.
37 * @param event - a trace event component
38 */
39 public EventCommandParameter(TraceSessionComponent session, TraceEventComponent event) {
40 super(session);
41 fEvent = event;
42 }
43
44 // ------------------------------------------------------------------------
45 // Accessors
46 // ------------------------------------------------------------------------
47
48 /**
49 * @return the trace event component
50 */
51 public TraceEventComponent getEvent() {
52 return fEvent;
53 }
54
55 // ------------------------------------------------------------------------
56 // Operations
57 // ------------------------------------------------------------------------
58
59 @Override
60 public EventCommandParameter clone() {
61 EventCommandParameter clone = (EventCommandParameter) super.clone();
62 clone.fEvent = fEvent;
63 return clone;
64 }
65 }
This page took 0.035151 seconds and 5 git commands to generate.