Commit | Line | Data |
---|---|---|
b793fbe1 | 1 | /********************************************************************** |
11252342 AM |
2 | * Copyright (c) 2012, 2013 Ericsson |
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 | **********************************************************************/ | |
8e8c0226 | 12 | package org.eclipse.linuxtools.internal.lttng2.control.ui.views.handlers; |
b793fbe1 | 13 | |
8e8c0226 AM |
14 | import org.eclipse.linuxtools.internal.lttng2.control.ui.views.model.impl.TraceEventComponent; |
15 | import org.eclipse.linuxtools.internal.lttng2.control.ui.views.model.impl.TraceSessionComponent; | |
b793fbe1 BH |
16 | |
17 | /** | |
dbd4432d | 18 | * Class containing parameter for a command execution. |
11252342 | 19 | * |
dbd4432d | 20 | * @author Bernd Hufmann |
b793fbe1 BH |
21 | */ |
22 | public class EventCommandParameter extends CommandParameter { | |
23 | ||
24 | // ------------------------------------------------------------------------ | |
25 | // Attributes | |
26 | // ------------------------------------------------------------------------ | |
11252342 | 27 | |
b793fbe1 BH |
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 | } | |
11252342 | 54 | |
b793fbe1 BH |
55 | // ------------------------------------------------------------------------ |
56 | // Operations | |
57 | // ------------------------------------------------------------------------ | |
58 | ||
b793fbe1 BH |
59 | @Override |
60 | public EventCommandParameter clone() { | |
61 | EventCommandParameter clone = (EventCommandParameter) super.clone(); | |
62 | clone.fEvent = fEvent; | |
63 | return clone; | |
64 | } | |
65 | } |