Commit | Line | Data |
---|---|---|
eb1bab5b BH |
1 | package org.eclipse.linuxtools.lttng.stubs.service; |
2 | ||
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; | |
13 | ||
14 | public class TestRemoteSystemProxy implements IRemoteSystemProxy { | |
15 | ||
16 | @Override | |
17 | public IShellService getShellService() { | |
18 | return null; | |
19 | } | |
20 | ||
21 | @Override | |
22 | public ITerminalService getTerminalService() { | |
23 | return null; | |
24 | } | |
25 | ||
26 | @Override | |
27 | public ISubSystem getShellServiceSubSystem() { | |
28 | return null; | |
29 | } | |
30 | ||
31 | @Override | |
32 | public ISubSystem getTerminalServiceSubSystem() { | |
33 | return null; | |
34 | } | |
35 | ||
36 | @Override | |
37 | public void connect(IRSECallback callback) throws ExecutionException { | |
38 | if (callback != null) { | |
39 | callback.done(Status.OK_STATUS, null); | |
40 | } | |
41 | } | |
42 | ||
43 | @Override | |
44 | public void disconnect() throws ExecutionException { | |
45 | } | |
46 | ||
47 | @Override | |
48 | public ICommandShell createCommandShell() throws ExecutionException { | |
49 | ICommandShell shell = CommandShellFactory.getInstance().getShellForSessionNames(); | |
50 | return shell; | |
51 | } | |
52 | ||
53 | @Override | |
54 | public void addCommunicationListener(ICommunicationsListener listener) { | |
55 | } | |
56 | ||
57 | @Override | |
58 | public void removeCommunicationListener(ICommunicationsListener listener) { | |
59 | } | |
60 | ||
61 | } |