Commit | Line | Data |
---|---|---|
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 | **********************************************************************/ | |
12 | package org.eclipse.linuxtools.internal.lttng2.stubs.dialogs; | |
13 | ||
14 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs.IGetEventInfoDialog; | |
15 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceChannelComponent; | |
16 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionComponent; | |
17 | ||
18 | /** | |
19 | * Get event information dialog stub implementation. | |
20 | */ | |
21 | public 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 |