Commit | Line | Data |
---|---|---|
eb1bab5b BH |
1 | package org.eclipse.linuxtools.lttng.stubs.service.shells; |
2 | ||
3 | import org.eclipse.core.commands.ExecutionException; | |
4 | import org.eclipse.core.runtime.IProgressMonitor; | |
5 | import org.eclipse.linuxtools.lttng.ui.views.control.service.CommandResult; | |
6 | import org.eclipse.linuxtools.lttng.ui.views.control.service.ICommandResult; | |
7 | ||
8 | public class NoUstProviderShell extends TestCommandShell { | |
9 | @SuppressWarnings("nls") | |
10 | @Override | |
11 | public ICommandResult executeCommand(String command, IProgressMonitor monitor, boolean checkReturnValue) throws ExecutionException { | |
12 | String[] output = new String[4]; | |
13 | //Session test not found | |
14 | //Error: Session name not found | |
15 | output[0] = String.valueOf("UST events:"); | |
16 | output[1] = String.valueOf("-------------"); | |
17 | output[2] = String.valueOf("None"); | |
18 | output[3] = String.valueOf(""); | |
19 | CommandResult result = new CommandResult(0, output); | |
20 | result.setResult(0); | |
21 | return result; | |
22 | } | |
23 | } | |
24 |