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; | |
eb1bab5b BH |
5 | import org.eclipse.linuxtools.lttng.ui.views.control.remote.IRemoteSystemProxy; |
6 | import org.eclipse.linuxtools.lttng.ui.views.control.service.ICommandShell; | |
7 | import org.eclipse.rse.core.model.IRSECallback; | |
8 | import org.eclipse.rse.core.subsystems.ICommunicationsListener; | |
9 | import org.eclipse.rse.core.subsystems.ISubSystem; | |
10 | import org.eclipse.rse.services.shells.IShellService; | |
11 | import org.eclipse.rse.services.terminals.ITerminalService; | |
bbb3538a | 12 | import org.eclipse.rse.subsystems.files.core.servicesubsystem.IFileServiceSubSystem; |
eb1bab5b BH |
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 | } | |
bbb3538a BH |
35 | @Override |
36 | public IFileServiceSubSystem getFileServiceSubSystem() { | |
37 | return null; | |
38 | } | |
eb1bab5b BH |
39 | |
40 | @Override | |
41 | public void connect(IRSECallback callback) throws ExecutionException { | |
42 | if (callback != null) { | |
43 | callback.done(Status.OK_STATUS, null); | |
44 | } | |
45 | } | |
46 | ||
47 | @Override | |
48 | public void disconnect() throws ExecutionException { | |
49 | } | |
50 | ||
51 | @Override | |
52 | public ICommandShell createCommandShell() throws ExecutionException { | |
53 | ICommandShell shell = CommandShellFactory.getInstance().getShellForSessionNames(); | |
54 | return shell; | |
55 | } | |
56 | ||
57 | @Override | |
58 | public void addCommunicationListener(ICommunicationsListener listener) { | |
59 | } | |
60 | ||
61 | @Override | |
62 | public void removeCommunicationListener(ICommunicationsListener listener) { | |
63 | } | |
64 | ||
65 | } |