1 /**********************************************************************
2 * Copyright (c) 2012, 2015 Ericsson
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
10 * Bernd Hufmann - Initial API and implementation
11 * Markus Schorn - Bug 448058: Use org.eclipse.remote in favor of RSE
12 **********************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.lttng2
.control
.stubs
.shells
;
15 import java
.util
.List
;
17 import org
.eclipse
.core
.commands
.ExecutionException
;
18 import org
.eclipse
.core
.runtime
.IProgressMonitor
;
19 import org
.eclipse
.tracecompass
.tmf
.remote
.core
.shell
.CommandResult
;
20 import org
.eclipse
.tracecompass
.tmf
.remote
.core
.shell
.ICommandResult
;
21 import org
.eclipse
.tracecompass
.tmf
.remote
.core
.shell
.ICommandShell
;
26 public class TestCommandShell
implements ICommandShell
{
28 /** If the shell is connected */
29 protected boolean fIsConnected
= false;
32 public void connect() throws ExecutionException
{
37 public void disconnect() {
42 public ICommandResult
executeCommand(List
<String
> command
, IProgressMonitor monitor
) throws ExecutionException
{
44 return new CommandResult(0, new String
[0], new String
[0]);
46 return new CommandResult(1, new String
[0], new String
[0]);
This page took 0.045035 seconds and 5 git commands to generate.