f7dc1bdb7f6d1e2d8a9223ee7798c7c19171574b
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.control.ui.tests / stubs / org / eclipse / linuxtools / internal / lttng2 / control / stubs / service / CommandShellFactory.java
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.internal.lttng2.control.stubs.service;
13
14 import org.eclipse.linuxtools.internal.lttng2.control.stubs.shells.LTTngToolsFileShell;
15
16 @SuppressWarnings("javadoc")
17 public class CommandShellFactory {
18
19 public static final int GET_SESSION_NAMES_COMMAND_SHELL = 0;
20
21 private static CommandShellFactory fInstance = null;
22
23 public static CommandShellFactory getInstance() {
24 if (fInstance == null) {
25 fInstance = new CommandShellFactory();
26 }
27 return fInstance;
28 }
29
30 // public ICommandShell getRealShell() {
31 // ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry();
32 // IHost host = registry.getLocalHost();
33 // RemoteSystemProxy proxy = new RemoteSystemProxy(host);
34 // ICommandShell shell = new LTTngToolsSimulatorShell(proxy);
35 // return shell;
36 // }
37
38 public LTTngToolsFileShell getFileShell() {
39 return new LTTngToolsFileShell();
40 }
41 }
This page took 0.031287 seconds and 4 git commands to generate.