0e3e9e72f72305db90495c9931617b3a6954b56b
[deliverable/tracecompass.git] / lttng / org.eclipse.tracecompass.lttng2.control.ui.tests / stubs / org / eclipse / tracecompass / internal / lttng2 / control / stubs / dialogs / EnableEventsDialogStub.java
1 /**********************************************************************
2 * Copyright (c) 2012, 2014 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.tracecompass.internal.lttng2.control.stubs.dialogs;
13
14 import java.util.ArrayList;
15 import java.util.List;
16
17 import org.eclipse.tracecompass.internal.lttng2.control.core.model.LogLevelType;
18 import org.eclipse.tracecompass.internal.lttng2.control.core.model.TraceLogLevel;
19 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.dialogs.IEnableEventsDialog;
20 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceDomainComponent;
21 import org.eclipse.tracecompass.internal.lttng2.control.ui.views.model.impl.TraceProviderGroup;
22
23 /**
24 * Enable events dialog stub implementation.
25 */
26 @SuppressWarnings("javadoc")
27 public class EnableEventsDialogStub implements IEnableEventsDialog {
28
29 // ------------------------------------------------------------------------
30 // Attributes
31 // ------------------------------------------------------------------------
32 private boolean fIsKernel;
33 private boolean fIsTracePoints;
34 private boolean fIsAllTracePoints;
35 private boolean fIsSysCalls;
36 private boolean fIsDynamicProbe;
37 private String fProbeEventName;
38 private String fDynamicProbe;
39 private boolean fIsFunctionProbe;
40 private String fFunctionEventName;
41 private String fFunctionProbe;
42 private boolean fIsWildcard;
43 private String fWildcard;
44 private boolean fIsLogLevel;
45 private String fLogLevelEventName;
46 private TraceLogLevel fLogLevel;
47 private LogLevelType fLogLevelType;
48 private String fFilter;
49 private List<String> fNames = new ArrayList<>();
50
51 // ------------------------------------------------------------------------
52 // Accessors
53 // ------------------------------------------------------------------------
54 public void setIsKernel(boolean isKernel) {
55 fIsKernel = isKernel;
56 }
57
58 public void setIsTracePoints(boolean isTracePoints) {
59 fIsTracePoints = isTracePoints;
60 }
61
62 public void setIsAllTracePoints(boolean isAllTracePoints) {
63 fIsAllTracePoints = isAllTracePoints;
64 }
65
66 public void setIsSysCalls(boolean isSysCalls) {
67 this.fIsSysCalls = isSysCalls;
68 }
69
70 public void setIsDynamicProbe(boolean isDynamicProbe) {
71 fIsDynamicProbe = isDynamicProbe;
72 }
73
74 public void setProbeEventName(String probeEventName) {
75 fProbeEventName = probeEventName;
76 }
77
78 public void setDynamicProbe(String dynamicProbe) {
79 fDynamicProbe = dynamicProbe;
80 }
81
82 public void setIsFunctionProbe(boolean isFunctionProbe) {
83 fIsFunctionProbe = isFunctionProbe;
84 }
85
86 public void setFunctionEventName(String functionEventName) {
87 fFunctionEventName = functionEventName;
88 }
89
90 public void setFunctionProbe(String functionProbe) {
91 fFunctionProbe = functionProbe;
92 }
93
94 public void setIsWildcard(boolean isWildcard) {
95 fIsWildcard = isWildcard;
96 }
97
98 public void setWildcard(String wildcard) {
99 fWildcard = wildcard;
100 }
101
102 public void setIsLogLevel(boolean isLogLevel) {
103 fIsLogLevel = isLogLevel;
104 }
105
106 public void setLogLevelEventName(String logLevelEventName) {
107 fLogLevelEventName = logLevelEventName;
108 }
109
110 public void setLogLevel(TraceLogLevel logLevel) {
111 fLogLevel = logLevel;
112 }
113
114 public void setLogLevelType(LogLevelType logLevelType) {
115 fLogLevelType = logLevelType;
116 }
117
118 public void setNames(List<String> names) {
119 fNames = names;
120 }
121
122 public void setFilterExpression(String filter) {
123 fFilter = filter;
124 }
125
126 @Override
127 public boolean isTracepoints() {
128 return fIsTracePoints;
129 }
130
131 @Override
132 public boolean isAllTracePoints() {
133 return fIsAllTracePoints;
134 }
135
136 @Override
137 public boolean isSysCalls() {
138 return fIsSysCalls;
139 }
140
141 @Override
142 public boolean isAllSysCalls() {
143 return fIsSysCalls;
144 }
145
146 @Override
147 public List<String> getEventNames() {
148 return fNames;
149 }
150
151 @Override
152 public boolean isDynamicProbe() {
153 return fIsDynamicProbe;
154 }
155
156 @Override
157 public String getProbeEventName() {
158 return fProbeEventName;
159 }
160
161 @Override
162 public String getProbeName() {
163 return fDynamicProbe;
164 }
165
166 @Override
167 public boolean isDynamicFunctionProbe() {
168 return fIsFunctionProbe;
169 }
170
171 @Override
172 public String getFunctionEventName() {
173 return fFunctionEventName;
174 }
175
176 @Override
177 public String getFunction() {
178 return fFunctionProbe;
179 }
180
181 @Override
182 public boolean isWildcard() {
183 return fIsWildcard;
184 }
185
186 @Override
187 public String getWildcard() {
188 return fWildcard;
189 }
190
191 @Override
192 public boolean isLogLevel() {
193 return fIsLogLevel;
194 }
195
196 @Override
197 public LogLevelType getLogLevelType() {
198 return fLogLevelType;
199 }
200
201 @Override
202 public TraceLogLevel getLogLevel() {
203 return fLogLevel;
204 }
205
206 @Override
207 public String getLogLevelEventName() {
208 return fLogLevelEventName;
209 }
210
211 @Override
212 public boolean isKernel() {
213 return fIsKernel;
214 }
215
216 @Override
217 public void setTraceProviderGroup(TraceProviderGroup providerGroup) {
218 }
219
220 @Override
221 public void setTraceDomainComponent(TraceDomainComponent domain) {
222 }
223
224 @Override
225 public int open() {
226 return 0;
227 }
228
229 @Override
230 public String getFilterExpression() {
231 return fFilter;
232 }
233
234 }
This page took 0.039158 seconds and 4 git commands to generate.