Merge branch 'master' into lttng_2_0_control_dev
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui.tests / stubs / org / eclipse / linuxtools / internal / lttng2 / stubs / dialogs / GetEventInfoDialogStub.java
CommitLineData
a26d90be
BH
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 **********************************************************************/
12package org.eclipse.linuxtools.internal.lttng2.stubs.dialogs;
13
14import org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs.IGetEventInfoDialog;
15import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceChannelComponent;
16import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent;
17
18/**
19 * Get event information dialog stub implementation.
20 */
21public class GetEventInfoDialogStub implements IGetEventInfoDialog {
22
23 private TraceSessionComponent[] fSessions;
24
25 @Override
26 public TraceSessionComponent getSession() {
27 return fSessions[0];
28 }
29
30 @Override
31 public TraceChannelComponent getChannel() {
32 return null;
33 }
34
35 @Override
36 public void setIsKernel(boolean isKernel) {
37 }
38
39 @Override
40 public void setSessions(TraceSessionComponent[] sessions) {
41 fSessions = sessions;
42 }
43
44 @Override
45 public int open() {
46 return 0;
47 }
48}
49
This page took 0.024567 seconds and 5 git commands to generate.