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 CreateSQLShellTab extends CreateTabHelper implements InteractionCommand { | |
20 | | |
21 | /** | |
22 | * Full path of the shell file on remote host. | |
23 | */ | |
24 | private final String path; | |
25 | ||
26 | // Url of the shell webpage on remote host | |
27 | private final String url; | |
28 | | |
29 | private final String user; | |
30 | private final String pass; | |
31 | ||
32 | /** | |
33 | * @param interactionParams The local path and url for the shell | |
34 | */ | |
35 | public CreateSQLShellTab(Object[] interactionParams) { | |
36 | | |
37 | this.path = (String) interactionParams[0]; | |
38 | this.url = (String) interactionParams[1]; | |
39 | this.user = (String) interactionParams[2]; | |
40 | this.pass = (String) interactionParams[3]; | |
41 | } | |
42 | ||
43 | @Override | |
44 | public void execute() { | |
45 |
1
1. execute : removed call to com/jsql/view/swing/tab/TabResults::createSQLShellTab → NO_COVERAGE |
MediatorHelper.tabResults().createSQLShellTab(this.url, this.user, this.pass, this.path); |
46 | } | |
47 | } | |
Mutations | ||
45 |
1.1 |