1 | package com.jsql.view.swing.panel.preferences; | |
2 | ||
3 | import com.jsql.util.tampering.TamperingType; | |
4 | ||
5 | import javax.swing.*; | |
6 | import java.awt.event.MouseAdapter; | |
7 | import java.awt.event.MouseEvent; | |
8 | ||
9 | public class TamperingMouseAdapter extends MouseAdapter { | |
10 | | |
11 | private final TamperingType tampering; | |
12 | private final JTextPane textPaneEval; | |
13 | private String eval = null; | |
14 | | |
15 | public TamperingMouseAdapter(TamperingType tampering, JTextPane textPaneEval) { | |
16 | | |
17 | this.tampering = tampering; | |
18 | this.textPaneEval = textPaneEval; | |
19 | } | |
20 | | |
21 | @Override | |
22 | public void mouseEntered(MouseEvent me) { | |
23 | | |
24 | this.eval = this.textPaneEval.getText(); | |
25 |
1
1. mouseEntered : removed call to javax/swing/JTextPane::setText → NO_COVERAGE |
this.textPaneEval.setText(this.tampering.instance().getJavascript().trim()); |
26 | } | |
27 | | |
28 | @Override | |
29 | public void mouseExited(MouseEvent e) { | |
30 |
1
1. mouseExited : removed call to javax/swing/JTextPane::setText → NO_COVERAGE |
this.textPaneEval.setText(this.eval); |
31 | } | |
32 | | |
33 | @Override | |
34 | public void mouseClicked(MouseEvent e) { | |
35 | | |
36 | this.eval = this.tampering.instance().getJavascript().trim(); | |
37 |
1
1. mouseClicked : removed call to javax/swing/JTextPane::setText → NO_COVERAGE |
this.textPaneEval.setText(this.eval); |
38 | } | |
39 | } | |
Mutations | ||
25 |
1.1 |
|
30 |
1.1 |
|
37 |
1.1 |