ec88c1168fe7ff58f1a07f491cf8a56ad55cd614
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng2.ui.tests / stubs / org / eclipse / linuxtools / internal / lttng2 / 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.stubs.service;
13
14 import org.eclipse.linuxtools.internal.lttng2.stubs.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 }
This page took 0.035528 seconds and 4 git commands to generate.