Commit | Line | Data |
---|---|---|
d132bcc7 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 | **********************************************************************/ | |
eb1bab5b BH |
12 | package org.eclipse.linuxtools.lttng.stubs.service; |
13 | ||
d132bcc7 | 14 | import org.eclipse.linuxtools.lttng.stubs.service.shells.LTTngToolsFileShell; |
eb1bab5b BH |
15 | |
16 | public class CommandShellFactory { | |
17 | ||
18 | public static final int GET_SESSION_NAMES_COMMAND_SHELL = 0; | |
19 | ||
20 | private static CommandShellFactory fInstance = null; | |
21 | ||
22 | public static CommandShellFactory getInstance() { | |
23 | if (fInstance == null) { | |
24 | fInstance = new CommandShellFactory(); | |
25 | } | |
26 | return fInstance; | |
27 | } | |
28 | ||
d132bcc7 BH |
29 | // public ICommandShell getRealShell() { |
30 | // ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry(); | |
31 | // IHost host = registry.getLocalHost(); | |
32 | // RemoteSystemProxy proxy = new RemoteSystemProxy(host); | |
33 | // ICommandShell shell = new LTTngToolsSimulatorShell(proxy); | |
34 | // return shell; | |
35 | // } | |
bbb3538a | 36 | |
d132bcc7 BH |
37 | public LTTngToolsFileShell getFileShell() { |
38 | return new LTTngToolsFileShell(); | |
bbb3538a | 39 | } |
eb1bab5b | 40 | } |