Commit | Line | Data |
---|---|---|
a26d90be | 1 | /********************************************************************** |
ba3a9bd2 | 2 | * Copyright (c) 2012, 2013 Ericsson |
cfdb727a | 3 | * |
a26d90be 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 | |
cfdb727a AM |
8 | * |
9 | * Contributors: | |
a26d90be | 10 | * Bernd Hufmann - Initial API and implementation |
ba3a9bd2 | 11 | * Bernd Hufmann - Updated for support of LTTng Tools 2.1 |
a26d90be BH |
12 | **********************************************************************/ |
13 | package org.eclipse.linuxtools.internal.lttng2.stubs.dialogs; | |
14 | ||
15 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.dialogs.ICreateSessionDialog; | |
16 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionGroup; | |
17 | ||
18 | /** | |
cfdb727a | 19 | * Create session dialog stub implementation. |
a26d90be | 20 | */ |
cfdb727a | 21 | @SuppressWarnings("javadoc") |
a26d90be | 22 | public class CreateSessionDialogStub implements ICreateSessionDialog { |
cfdb727a | 23 | |
a26d90be BH |
24 | public String fName = "mysession"; //$NON-NLS-1$ |
25 | public String fPath = null; | |
f3b33d40 BH |
26 | private boolean fIsStreamedTrace = false; |
27 | private String fNetworkUrl = null; | |
28 | private String fControlUrl = null; | |
29 | private String fDataUrl = null; | |
cfdb727a | 30 | |
a26d90be BH |
31 | @Override |
32 | public String getSessionName() { | |
33 | return fName; | |
34 | } | |
35 | ||
36 | @Override | |
37 | public String getSessionPath() { | |
38 | return fPath; | |
39 | } | |
40 | ||
41 | @Override | |
42 | public boolean isDefaultSessionPath() { | |
43 | return fPath == null; | |
44 | } | |
45 | ||
46 | @Override | |
f3b33d40 | 47 | public void initialize(TraceSessionGroup group) { |
a26d90be BH |
48 | } |
49 | ||
50 | @Override | |
51 | public int open() { | |
52 | return 0; | |
53 | } | |
cfdb727a | 54 | |
a26d90be BH |
55 | public void setSessionPath(String path) { |
56 | fPath = path; | |
57 | } | |
cfdb727a | 58 | |
a26d90be BH |
59 | public void setSessionName(String name) { |
60 | fName = name; | |
61 | } | |
f3b33d40 BH |
62 | |
63 | @Override | |
64 | public boolean isStreamedTrace() { | |
65 | return fIsStreamedTrace; | |
66 | } | |
67 | ||
68 | public void setStreamedTrace(boolean isStreamedTrace) { | |
69 | fIsStreamedTrace = isStreamedTrace; | |
70 | } | |
71 | ||
72 | @Override | |
73 | public String getNetworkUrl() { | |
74 | return fNetworkUrl; | |
75 | } | |
76 | ||
77 | public void setNetworkUrl(String fNetworkUrl) { | |
78 | this.fNetworkUrl = fNetworkUrl; | |
79 | } | |
80 | ||
81 | ||
82 | @Override | |
83 | public String getControlUrl() { | |
84 | return fControlUrl; | |
85 | } | |
86 | ||
87 | public void setControlUrl(String fControlUrl) { | |
88 | this.fControlUrl = fControlUrl; | |
89 | } | |
90 | ||
91 | @Override | |
92 | public String getDataUrl() { | |
93 | return fDataUrl; | |
94 | } | |
95 | ||
96 | public void setDataUrl(String fDataUrl) { | |
97 | this.fDataUrl = fDataUrl; | |
98 | } | |
99 | ||
a26d90be | 100 | } |