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.ICreateSessionDialog; | |
15 | import org.eclipse.linuxtools.internal.lttng2.ui.views.control.model.impl.TraceSessionGroup; | |
16 | ||
17 | /** | |
18 | * Create session dialog stub implementation. | |
19 | */ | |
20 | public class CreateSessionDialogStub implements ICreateSessionDialog { | |
21 | ||
22 | public String fName = "mysession"; //$NON-NLS-1$ | |
23 | public String fPath = null; | |
24 | ||
25 | ||
26 | @Override | |
27 | public String getSessionName() { | |
28 | return fName; | |
29 | } | |
30 | ||
31 | @Override | |
32 | public String getSessionPath() { | |
33 | return fPath; | |
34 | } | |
35 | ||
36 | @Override | |
37 | public boolean isDefaultSessionPath() { | |
38 | return fPath == null; | |
39 | } | |
40 | ||
41 | @Override | |
42 | public void setTraceSessionGroup(TraceSessionGroup group) { | |
43 | ||
44 | } | |
45 | ||
46 | @Override | |
47 | public int open() { | |
48 | return 0; | |
49 | } | |
50 | ||
51 | public void setSessionPath(String path) { | |
52 | fPath = path; | |
53 | } | |
54 | ||
55 | public void setSessionName(String name) { | |
56 | fName = name; | |
57 | } | |
58 | } |