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=0aa5c1f6d4823c0c856459b5d1ddeec61584825f;hb=cfdb727a40c37882fd8c1ae8e4ad35c8020701c5;hp=5b0575b75acb065421e4805ffa5b70f70bb5fdb1;hpb=3ef46b1ff117dd101012d66ab99ca3d538160fea;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..0aa5c1f6d4 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,34 @@ /********************************************************************** * 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 { protected boolean fIsConnected = false; - + @Override public void connect() throws ExecutionException { fIsConnected = true; } - + @Override public void disconnect() { fIsConnected = false; @@ -39,7 +42,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]); }