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
.SessionCreationErrorsShell
;
8 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.SessionNotExistsShell
;
9 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.SessionNamesShell
;
10 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.control
.service
.ICommandShell
;
12 public class CommandShellFactory
{
14 public static final int GET_SESSION_NAMES_COMMAND_SHELL
= 0;
16 private static CommandShellFactory fInstance
= null;
18 public static CommandShellFactory
getInstance() {
19 if (fInstance
== null) {
20 fInstance
= new CommandShellFactory();
25 public ICommandShell
getShellForNoSessionNames() {
26 return new NoSessionNamesShell();
29 public ICommandShell
getShellForSessionNames() {
30 return new SessionNamesShell();
33 public ICommandShell
getShellForLttngNotExistsShell() {
34 return new LttngNotExistsShell();
37 public ICommandShell
getShellForSessionNotExists() {
38 return new SessionNotExistsShell();
41 public ICommandShell
getShellForSessionGarbage() {
42 return new GetSessionGarbageShell();
45 public ICommandShell
getShellForNoUstProvider() {
46 return new NoUstProviderShell();
49 public ICommandShell
getShellForSessionErrors() {
50 return new SessionCreationErrorsShell();