1 | /******************************************************************************* | |
2 | * Copyhacked (H) 2012-2020. | |
3 | * This program and the accompanying materials | |
4 | * are made available under no term at all, use it like | |
5 | * you want, but share and discuss about it | |
6 | * every time possible with every body. | |
7 | * | |
8 | * Contributors: | |
9 | * ron190 at ymail dot com - initial implementation | |
10 | ******************************************************************************/ | |
11 | package com.jsql.view.swing.interaction; | |
12 | ||
13 | import com.jsql.view.interaction.InteractionCommand; | |
14 | import com.jsql.view.swing.util.MediatorHelper; | |
15 | ||
16 | /** | |
17 | * Create a new tab for the terminal. | |
18 | */ | |
19 | public class CreateShellTab extends CreateTabHelper implements InteractionCommand { | |
20 | ||
21 | /** | |
22 | * Full path of the shell file on remote host. | |
23 | */ | |
24 | private final String path; | |
25 | ||
26 | /** | |
27 | * Url of the shell webpage on remote host. | |
28 | */ | |
29 | private final String url; | |
30 | ||
31 | /** | |
32 | * @param interactionParams The local path and url for the shell | |
33 | */ | |
34 | public CreateShellTab(Object[] interactionParams) { | |
35 | | |
36 | this.path = (String) interactionParams[0]; | |
37 | this.url = (String) interactionParams[1]; | |
38 | } | |
39 | ||
40 | @Override | |
41 | public void execute() { | |
42 |
1
1. execute : removed call to com/jsql/view/swing/tab/TabResults::createShell → NO_COVERAGE |
MediatorHelper.tabResults().createShell(this.url, this.path); |
43 | } | |
44 | } | |
Mutations | ||
42 |
1.1 |