1 /**********************************************************************
2 * Copyright (c) 2012 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 **********************************************************************/
12 package org
.eclipse
.linuxtools
.internal
.lttng2
.ui
.views
.control
.handlers
;
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
;
18 * Class containing parameter for a command execution.
20 public class EventCommandParameter
extends CommandParameter
{
22 // ------------------------------------------------------------------------
24 // ------------------------------------------------------------------------
25 private TraceEventComponent fEvent
;
27 // ------------------------------------------------------------------------
29 // ------------------------------------------------------------------------
33 * @param session - a trace session component.
34 * @param event - a trace event component
36 public EventCommandParameter(TraceSessionComponent session
, TraceEventComponent event
) {
41 // ------------------------------------------------------------------------
43 // ------------------------------------------------------------------------
46 * @return the trace event component
48 public TraceEventComponent
getEvent() {
52 // ------------------------------------------------------------------------
54 // ------------------------------------------------------------------------
58 * @see java.lang.Object#clone()
61 public EventCommandParameter
clone() {
62 EventCommandParameter clone
= (EventCommandParameter
) super.clone();
63 clone
.fEvent
= fEvent
;