X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng.ui.tests%2Fstubs%2Forg%2Feclipse%2Flinuxtools%2Flttng%2Fstubs%2Fservice%2FCommandShellFactory.java;h=e10b595ed2d1b80084d33d1ef7913ac6acab087d;hb=d132bcc71fa0ff07cf2a3f0b6258f38abb546fb7;hp=c461ae6334ad724f80d5fae77671a9b7fde06836;hpb=f1e23c542e9b00f6dab15b7aa2960315a22d9bc4;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng.ui.tests/stubs/org/eclipse/linuxtools/lttng/stubs/service/CommandShellFactory.java b/org.eclipse.linuxtools.lttng.ui.tests/stubs/org/eclipse/linuxtools/lttng/stubs/service/CommandShellFactory.java index c461ae6334..e10b595ed2 100644 --- a/org.eclipse.linuxtools.lttng.ui.tests/stubs/org/eclipse/linuxtools/lttng/stubs/service/CommandShellFactory.java +++ b/org.eclipse.linuxtools.lttng.ui.tests/stubs/org/eclipse/linuxtools/lttng/stubs/service/CommandShellFactory.java @@ -1,13 +1,17 @@ +/********************************************************************** + * Copyright (c) 2012 Ericsson + * + * All rights reserved. This program and the accompanying materials are + * made available under the terms of the Eclipse Public License v1.0 which + * accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Bernd Hufmann - Initial API and implementation + **********************************************************************/ package org.eclipse.linuxtools.lttng.stubs.service; -import org.eclipse.linuxtools.lttng.stubs.service.shells.GetSessionGarbageShell; -import org.eclipse.linuxtools.lttng.stubs.service.shells.LttngNotExistsShell; -import org.eclipse.linuxtools.lttng.stubs.service.shells.NoSessionNamesShell; -import org.eclipse.linuxtools.lttng.stubs.service.shells.NoUstProviderShell; -import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionCreationErrorsShell; -import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionNotExistsShell; -import org.eclipse.linuxtools.lttng.stubs.service.shells.SessionNamesShell; -import org.eclipse.linuxtools.lttng.ui.views.control.service.ICommandShell; +import org.eclipse.linuxtools.lttng.stubs.service.shells.LTTngToolsFileShell; public class CommandShellFactory { @@ -22,31 +26,15 @@ public class CommandShellFactory { return fInstance; } - public ICommandShell getShellForNoSessionNames() { - return new NoSessionNamesShell(); - } - - public ICommandShell getShellForSessionNames() { - return new SessionNamesShell(); - } - - public ICommandShell getShellForLttngNotExistsShell() { - return new LttngNotExistsShell(); - } - - public ICommandShell getShellForSessionNotExists() { - return new SessionNotExistsShell(); - } - - public ICommandShell getShellForSessionGarbage() { - return new GetSessionGarbageShell(); - } - - public ICommandShell getShellForNoUstProvider() { - return new NoUstProviderShell(); - } +// public ICommandShell getRealShell() { +// ISystemRegistry registry = RSECorePlugin.getTheSystemRegistry(); +// IHost host = registry.getLocalHost(); +// RemoteSystemProxy proxy = new RemoteSystemProxy(host); +// ICommandShell shell = new LTTngToolsSimulatorShell(proxy); +// return shell; +// } - public ICommandShell getShellForSessionErrors() { - return new SessionCreationErrorsShell(); + public LTTngToolsFileShell getFileShell() { + return new LTTngToolsFileShell(); } }