1 package org
.eclipse
.linuxtools
.lttng
.stubs
.service
;
3 import org
.eclipse
.core
.commands
.ExecutionException
;
4 import org
.eclipse
.core
.runtime
.Status
;
5 import org
.eclipse
.linuxtools
.lttng
.stubs
.service
.shells
.TestCommandShell
;
6 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.control
.remote
.IRemoteSystemProxy
;
7 import org
.eclipse
.linuxtools
.lttng
.ui
.views
.control
.service
.ICommandShell
;
8 import org
.eclipse
.rse
.core
.model
.IRSECallback
;
9 import org
.eclipse
.rse
.core
.subsystems
.ICommunicationsListener
;
10 import org
.eclipse
.rse
.core
.subsystems
.ISubSystem
;
11 import org
.eclipse
.rse
.services
.shells
.IShellService
;
12 import org
.eclipse
.rse
.services
.terminals
.ITerminalService
;
14 public class TestRemoteSystemProxy
implements IRemoteSystemProxy
{
17 public IShellService
getShellService() {
22 public ITerminalService
getTerminalService() {
27 public ISubSystem
getShellServiceSubSystem() {
32 public ISubSystem
getTerminalServiceSubSystem() {
37 public void connect(IRSECallback callback
) throws ExecutionException
{
38 if (callback
!= null) {
39 callback
.done(Status
.OK_STATUS
, null);
44 public void disconnect() throws ExecutionException
{
48 public ICommandShell
createCommandShell() throws ExecutionException
{
49 ICommandShell shell
= CommandShellFactory
.getInstance().getShellForSessionNames();
54 public void addCommunicationListener(ICommunicationsListener listener
) {
58 public void removeCommunicationListener(ICommunicationsListener listener
) {