Added some more JUnit tests
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui.tests / stubs / org / eclipse / linuxtools / lttng / stubs / service / CommandShellFactory.java
index c461ae6334ad724f80d5fae77671a9b7fde06836..e10b595ed2d1b80084d33d1ef7913ac6acab087d 100644 (file)
@@ -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();
     }
 }
This page took 0.02425 seconds and 5 git commands to generate.