1 package org
.eclipse
.linuxtools
.lttng
.stubs
.service
;
3 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.GetSessionGarbageShell
;
4 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.LttngNotExistsShell
;
5 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.NoSessionNamesShell
;
6 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.NoUstProviderShell
;
7 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.SessionNotExistsShell
;
8 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.SessionNamesShell
;
9 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.control
.service
.ICommandShell
;
11 public class CommandShellFactory
{
13 public static final int GET_SESSION_NAMES_COMMAND_SHELL
= 0;
15 private static CommandShellFactory fInstance
= null;
17 public static CommandShellFactory
getInstance() {
18 if (fInstance
== null) {
19 fInstance
= new CommandShellFactory();
24 public ICommandShell
getShellForNoSessionNames() {
25 return new NoSessionNamesShell();
28 public ICommandShell
getShellForSessionNames() {
29 return new SessionNamesShell();
32 public ICommandShell
getShellForLttngNotExistsShell() {
33 return new LttngNotExistsShell();
36 public ICommandShell
getShellForSessionNotExists() {
37 return new SessionNotExistsShell();
40 public ICommandShell
getShellForSessionGarbage() {
41 return new GetSessionGarbageShell();
44 public ICommandShell
getShellForNoUstProvider() {
45 return new NoUstProviderShell();