X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=org.eclipse.linuxtools.lttng2.ui.tests%2Fstubs%2Forg%2Feclipse%2Flinuxtools%2Finternal%2Flttng2%2Fstubs%2Fshells%2FTestCommandShell.java;h=82537cc8cda40a47b3d4ba25167b157584757c34;hb=152ba1a7fabe7175ba1a6f267eda2b3891cbcb63;hp=5b0575b75acb065421e4805ffa5b70f70bb5fdb1;hpb=941b76a5e23185d063b1697a0a5dfc73e6771c7b;p=deliverable%2Ftracecompass.git diff --git a/org.eclipse.linuxtools.lttng2.ui.tests/stubs/org/eclipse/linuxtools/internal/lttng2/stubs/shells/TestCommandShell.java b/org.eclipse.linuxtools.lttng2.ui.tests/stubs/org/eclipse/linuxtools/internal/lttng2/stubs/shells/TestCommandShell.java index 5b0575b75a..82537cc8cd 100644 --- a/org.eclipse.linuxtools.lttng2.ui.tests/stubs/org/eclipse/linuxtools/internal/lttng2/stubs/shells/TestCommandShell.java +++ b/org.eclipse.linuxtools.lttng2.ui.tests/stubs/org/eclipse/linuxtools/internal/lttng2/stubs/shells/TestCommandShell.java @@ -1,31 +1,35 @@ /********************************************************************** * 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: + * + * Contributors: * Bernd Hufmann - Initial API and implementation **********************************************************************/ package org.eclipse.linuxtools.internal.lttng2.stubs.shells; import org.eclipse.core.commands.ExecutionException; import org.eclipse.core.runtime.IProgressMonitor; -import org.eclipse.linuxtools.internal.lttng2.ui.views.control.service.CommandResult; -import org.eclipse.linuxtools.internal.lttng2.ui.views.control.service.ICommandResult; -import org.eclipse.linuxtools.internal.lttng2.ui.views.control.service.ICommandShell; +import org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote.CommandResult; +import org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote.ICommandResult; +import org.eclipse.linuxtools.internal.lttng2.ui.views.control.remote.ICommandShell; +/** + * Command shell stub + */ public class TestCommandShell implements ICommandShell { + /** If the shell is connected */ protected boolean fIsConnected = false; - + @Override public void connect() throws ExecutionException { fIsConnected = true; } - + @Override public void disconnect() { fIsConnected = false; @@ -39,7 +43,7 @@ public class TestCommandShell implements ICommandShell { @Override public ICommandResult executeCommand(String command, IProgressMonitor monitor, boolean checkReturnValue) throws ExecutionException { if (fIsConnected) { - + } return new CommandResult(0, new String[0]); }