First part of LTTng 2.0 support
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui.tests / stubs / org / eclipse / linuxtools / lttng / stubs / service / CommandShellFactory.java
CommitLineData
eb1bab5b
BH
1package org.eclipse.linuxtools.lttng.stubs.service;
2
3import org.eclipse.linuxtools.lttng.stubs.service.shells.GetSessionGarbageShell;
4import org.eclipse.linuxtools.lttng.stubs.service.shells.LttngNotExistsShell;
5import org.eclipse.linuxtools.lttng.stubs.service.shells.NoSessionNamesShell;
6import org.eclipse.linuxtools.lttng.stubs.service.shells.NoUstProviderShell;
7import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionNotExistsShell;
8import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionNamesShell;
9import org.eclipse.linuxtools.lttng.ui.views.control.service.ICommandShell;
10
11public class CommandShellFactory {
12
13 public static final int GET_SESSION_NAMES_COMMAND_SHELL = 0;
14
15 private static CommandShellFactory fInstance = null;
16
17 public static CommandShellFactory getInstance() {
18 if (fInstance == null) {
19 fInstance = new CommandShellFactory();
20 }
21 return fInstance;
22 }
23
24 public ICommandShell getShellForNoSessionNames() {
25 return new NoSessionNamesShell();
26 }
27
28 public ICommandShell getShellForSessionNames() {
29 return new SessionNamesShell();
30 }
31
32 public ICommandShell getShellForLttngNotExistsShell() {
33 return new LttngNotExistsShell();
34 }
35
36 public ICommandShell getShellForSessionNotExists() {
37 return new SessionNotExistsShell();
38 }
39
40 public ICommandShell getShellForSessionGarbage() {
41 return new GetSessionGarbageShell();
42 }
43
44 public ICommandShell getShellForNoUstProvider() {
45 return new NoUstProviderShell();
46 }
47}
This page took 0.025554 seconds and 5 git commands to generate.