| 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.lttng.stubs.service; |
| 13 | |
| 14 | import org.eclipse.linuxtools.lttng.stubs.service.shells.LTTngToolsFileShell; |
| 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 | |
| 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 | // } |
| 36 | |
| 37 | public LTTngToolsFileShell getFileShell() { |
| 38 | return new LTTngToolsFileShell(); |
| 39 | } |
| 40 | } |