1 | package com.jsql.view.swing.panel.preferences; | |
2 | ||
3 | import com.jsql.view.swing.panel.PanelPreferences; | |
4 | import com.jsql.view.swing.util.MediatorHelper; | |
5 | ||
6 | import javax.swing.*; | |
7 | import java.util.stream.Stream; | |
8 | ||
9 | public class PanelStrategies extends JPanel { | |
10 | ||
11 | private final JCheckBox checkboxIsStrategyTimeDisabled = new JCheckBox("Disable Time", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyTimeDisabled()); | |
12 | private final JCheckBox checkboxIsStrategyBlindBitDisabled = new JCheckBox("Disable Blind bit", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyBlindBitDisabled()); | |
13 | private final JCheckBox checkboxIsStrategyBlindBinDisabled = new JCheckBox("Disable Blind bin", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyBlindBinDisabled()); | |
14 | private final JCheckBox checkboxIsStrategyMultibitDisabled = new JCheckBox("Disable Multibit", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyMultibitDisabled()); | |
15 | private final JCheckBox checkboxIsStrategyErrorDisabled = new JCheckBox("Disable Error", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyErrorDisabled()); | |
16 | private final JCheckBox checkboxIsStrategyStackDisabled = new JCheckBox("Disable Stack", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyStackDisabled()); | |
17 | private final JCheckBox checkboxIsStrategyUnionDisabled = new JCheckBox("Disable Union", MediatorHelper.model().getMediatorUtils().getPreferencesUtil().isStrategyUnionDisabled()); | |
18 | ||
19 | public PanelStrategies(PanelPreferences panelPreferences) { | |
20 |
1
1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE |
this.checkboxIsStrategyTimeDisabled.setToolTipText("Skip Time strategy processing"); |
21 |
1
1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE |
this.checkboxIsStrategyBlindBitDisabled.setToolTipText("Skip Blind bit strategy processing"); |
22 |
1
1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE |
this.checkboxIsStrategyBlindBinDisabled.setToolTipText("Skip Blind bin strategy processing"); |
23 |
1
1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE |
this.checkboxIsStrategyMultibitDisabled.setToolTipText("Skip Multibit strategy processing"); |
24 |
1
1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE |
this.checkboxIsStrategyErrorDisabled.setToolTipText("Skip Error strategy processing"); |
25 |
1
1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE |
this.checkboxIsStrategyStackDisabled.setToolTipText("Skip Stack strategy processing"); |
26 |
1
1. <init> : removed call to javax/swing/JCheckBox::setToolTipText → NO_COVERAGE |
this.checkboxIsStrategyUnionDisabled.setToolTipText("Skip Union strategy processing"); |
27 | ||
28 | Stream.of( | |
29 | this.checkboxIsStrategyTimeDisabled, | |
30 | this.checkboxIsStrategyBlindBitDisabled, | |
31 | this.checkboxIsStrategyBlindBinDisabled, | |
32 | this.checkboxIsStrategyMultibitDisabled, | |
33 | this.checkboxIsStrategyErrorDisabled, | |
34 | this.checkboxIsStrategyStackDisabled, | |
35 | this.checkboxIsStrategyUnionDisabled | |
36 | ) | |
37 |
2
1. <init> : removed call to java/util/stream/Stream::forEach → NO_COVERAGE 2. lambda$new$0 : removed call to javax/swing/JCheckBox::addActionListener → NO_COVERAGE |
.forEach(button -> button.addActionListener(panelPreferences.getActionListenerSave())); |
38 | ||
39 | var labelOrigin = new JLabel("<html><b>Choose injection strategies to skip</b></html>"); | |
40 |
1
1. <init> : removed call to javax/swing/JLabel::setBorder → NO_COVERAGE |
labelOrigin.setBorder(PanelGeneral.MARGIN); |
41 | ||
42 | var groupLayout = new GroupLayout(this); | |
43 |
1
1. <init> : removed call to com/jsql/view/swing/panel/preferences/PanelStrategies::setLayout → NO_COVERAGE |
this.setLayout(groupLayout); |
44 | ||
45 |
1
1. <init> : removed call to javax/swing/GroupLayout::setHorizontalGroup → NO_COVERAGE |
groupLayout.setHorizontalGroup( |
46 | groupLayout | |
47 | .createSequentialGroup() | |
48 | .addGroup( | |
49 | groupLayout | |
50 | .createParallelGroup(GroupLayout.Alignment.LEADING, false) | |
51 | .addComponent(labelOrigin) | |
52 | .addComponent(this.checkboxIsStrategyTimeDisabled) | |
53 | .addComponent(this.checkboxIsStrategyBlindBitDisabled) | |
54 | .addComponent(this.checkboxIsStrategyBlindBinDisabled) | |
55 | .addComponent(this.checkboxIsStrategyMultibitDisabled) | |
56 | .addComponent(this.checkboxIsStrategyErrorDisabled) | |
57 | .addComponent(this.checkboxIsStrategyStackDisabled) | |
58 | .addComponent(this.checkboxIsStrategyUnionDisabled) | |
59 | ) | |
60 | ); | |
61 | | |
62 |
1
1. <init> : removed call to javax/swing/GroupLayout::setVerticalGroup → NO_COVERAGE |
groupLayout.setVerticalGroup( |
63 | groupLayout | |
64 | .createSequentialGroup() | |
65 | .addGroup( | |
66 | groupLayout | |
67 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
68 | .addComponent(labelOrigin) | |
69 | ) | |
70 | .addGroup( | |
71 | groupLayout | |
72 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
73 | .addComponent(this.checkboxIsStrategyTimeDisabled) | |
74 | ) | |
75 | .addGroup( | |
76 | groupLayout | |
77 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
78 | .addComponent(this.checkboxIsStrategyBlindBitDisabled) | |
79 | ) | |
80 | .addGroup( | |
81 | groupLayout | |
82 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
83 | .addComponent(this.checkboxIsStrategyBlindBinDisabled) | |
84 | ) | |
85 | .addGroup( | |
86 | groupLayout | |
87 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
88 | .addComponent(this.checkboxIsStrategyMultibitDisabled) | |
89 | ) | |
90 | .addGroup( | |
91 | groupLayout | |
92 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
93 | .addComponent(this.checkboxIsStrategyErrorDisabled) | |
94 | ) | |
95 | .addGroup( | |
96 | groupLayout | |
97 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
98 | .addComponent(this.checkboxIsStrategyStackDisabled) | |
99 | ) | |
100 | .addGroup( | |
101 | groupLayout | |
102 | .createParallelGroup(GroupLayout.Alignment.BASELINE) | |
103 | .addComponent(this.checkboxIsStrategyUnionDisabled) | |
104 | ) | |
105 | ); | |
106 | } | |
107 | | |
108 | | |
109 | // Getter and setter | |
110 | ||
111 | public JCheckBox getCheckboxIsStrategyTimeDisabled() { | |
112 |
1
1. getCheckboxIsStrategyTimeDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyTimeDisabled → NO_COVERAGE |
return this.checkboxIsStrategyTimeDisabled; |
113 | } | |
114 | ||
115 | public JCheckBox getCheckboxIsStrategyBlindBitDisabled() { | |
116 |
1
1. getCheckboxIsStrategyBlindBitDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyBlindBitDisabled → NO_COVERAGE |
return this.checkboxIsStrategyBlindBitDisabled; |
117 | } | |
118 | ||
119 | public JCheckBox getCheckboxIsStrategyBlindBinDisabled() { | |
120 |
1
1. getCheckboxIsStrategyBlindBinDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyBlindBinDisabled → NO_COVERAGE |
return this.checkboxIsStrategyBlindBinDisabled; |
121 | } | |
122 | ||
123 | public JCheckBox getCheckboxIsStrategyStackDisabled() { | |
124 |
1
1. getCheckboxIsStrategyStackDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyStackDisabled → NO_COVERAGE |
return this.checkboxIsStrategyStackDisabled; |
125 | } | |
126 | ||
127 | public JCheckBox getCheckboxIsStrategyMultibitDisabled() { | |
128 |
1
1. getCheckboxIsStrategyMultibitDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyMultibitDisabled → NO_COVERAGE |
return this.checkboxIsStrategyMultibitDisabled; |
129 | } | |
130 | ||
131 | public JCheckBox getCheckboxIsStrategyErrorDisabled() { | |
132 |
1
1. getCheckboxIsStrategyErrorDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyErrorDisabled → NO_COVERAGE |
return this.checkboxIsStrategyErrorDisabled; |
133 | } | |
134 | ||
135 | public JCheckBox getCheckboxIsStrategyUnionDisabled() { | |
136 |
1
1. getCheckboxIsStrategyUnionDisabled : replaced return value with null for com/jsql/view/swing/panel/preferences/PanelStrategies::getCheckboxIsStrategyUnionDisabled → NO_COVERAGE |
return this.checkboxIsStrategyUnionDisabled; |
137 | } | |
138 | } | |
Mutations | ||
20 |
1.1 |
|
21 |
1.1 |
|
22 |
1.1 |
|
23 |
1.1 |
|
24 |
1.1 |
|
25 |
1.1 |
|
26 |
1.1 |
|
37 |
1.1 2.2 |
|
40 |
1.1 |
|
43 |
1.1 |
|
45 |
1.1 |
|
62 |
1.1 |
|
112 |
1.1 |
|
116 |
1.1 |
|
120 |
1.1 |
|
124 |
1.1 |
|
128 |
1.1 |
|
132 |
1.1 |
|
136 |
1.1 |