@@ -98,6 +98,7 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
98
98
JTable testOverviewTable
99
99
JMenuItem testOverviewRunMenuItem
100
100
JMenuItem testOverviewRunWorksheetMenuItem
101
+ JCheckBoxMenuItem showTestDescriptionCheckBoxMenuItem
101
102
JCheckBoxMenuItem showWarningIndicatorCheckBoxMenuItem
102
103
JCheckBoxMenuItem showInfoIndicatorCheckBoxMenuItem
103
104
JCheckBoxMenuItem syncDetailTabCheckBoxMenuItem
@@ -157,6 +158,16 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
157
158
}
158
159
}
159
160
161
+ private def applyShowNumberOfRunsInHistory (int maxRuns ) {
162
+ if (maxRuns != runs. maxEntries) {
163
+ val newRuns = new LimitedLinkedHashMap<String , Run > (maxRuns)
164
+ for (entry : runs. entrySet) {
165
+ newRuns. put(entry. key, entry. value)
166
+ }
167
+ runs = newRuns
168
+ }
169
+ }
170
+
160
171
private def applyShowDisabledCounter (boolean show ) {
161
172
disabledCounterValueLabel. parent. visible = showDisabledCounterCheckBoxMenuItem. selected
162
173
}
@@ -168,6 +179,13 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
168
179
private def applyShowInfoCounter (boolean show ) {
169
180
infoCounterValueLabel. parent. visible = showInfoCounterCheckBoxMenuItem. selected
170
181
}
182
+
183
+ private def applyShowTestDescription (boolean show ) {
184
+ testOverviewTableModel. updateModel(showTestDescriptionCheckBoxMenuItem. selected)
185
+ val idColumn = testOverviewTable. columnModel. getColumn(3 )
186
+ idColumn. headerValue = testOverviewTableModel. testIdColumnName
187
+ testOverviewTable. tableHeader. repaint
188
+ }
171
189
172
190
private def applyShowWarningIndicator (boolean show ) {
173
191
val col = testOverviewTable. columnModel. getColumn(1 )
@@ -300,6 +318,7 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
300
318
301
319
private def applyPreferences () {
302
320
val PreferenceModel preferences = preferenceModel
321
+ applyShowNumberOfRunsInHistory(preferences. numberOfRunsInHistory)
303
322
showDisabledCounterCheckBoxMenuItem. selected = preferences. showDisabledCounter
304
323
applyShowDisabledCounter(showDisabledCounterCheckBoxMenuItem. selected)
305
324
fixCheckBoxMenuItem(showDisabledCounterCheckBoxMenuItem)
@@ -309,6 +328,9 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
309
328
showInfoCounterCheckBoxMenuItem. selected = preferences. showInfoCounter
310
329
applyShowInfoCounter(showInfoCounterCheckBoxMenuItem. selected)
311
330
fixCheckBoxMenuItem(showInfoCounterCheckBoxMenuItem)
331
+ showTestDescriptionCheckBoxMenuItem. selected = preferences. showTestDescription
332
+ applyShowTestDescription(showTestDescriptionCheckBoxMenuItem. selected)
333
+ fixCheckBoxMenuItem(showTestDescriptionCheckBoxMenuItem)
312
334
showWarningIndicatorCheckBoxMenuItem. selected = preferences. showWarningIndicator
313
335
applyShowWarningIndicator(showWarningIndicatorCheckBoxMenuItem. selected)
314
336
fixCheckBoxMenuItem(showWarningIndicatorCheckBoxMenuItem)
@@ -328,7 +350,7 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
328
350
private def setCurrentRun (Run run ) {
329
351
if (run !== currentRun) {
330
352
currentRun = run
331
- testOverviewTableModel. model = run. tests
353
+ testOverviewTableModel. setModel( run. tests, showTestDescriptionCheckBoxMenuItem . selected)
332
354
resetDerived
333
355
val item = new ComboBoxItem<String , String > (currentRun. reporterId, currentRun. name)
334
356
runComboBox. selectedItem = item
@@ -451,6 +473,9 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
451
473
} else if (e. source == showInfoCounterCheckBoxMenuItem) {
452
474
applyShowInfoCounter(showInfoCounterCheckBoxMenuItem. selected)
453
475
fixCheckBoxMenuItem(showInfoCounterCheckBoxMenuItem)
476
+ } else if (e. source == showTestDescriptionCheckBoxMenuItem) {
477
+ applyShowTestDescription(showTestDescriptionCheckBoxMenuItem. selected)
478
+ fixCheckBoxMenuItem(showTestDescriptionCheckBoxMenuItem)
454
479
} else if (e. source == showWarningIndicatorCheckBoxMenuItem) {
455
480
applyShowWarningIndicator(showWarningIndicatorCheckBoxMenuItem. selected)
456
481
fixCheckBoxMenuItem(showWarningIndicatorCheckBoxMenuItem)
@@ -870,6 +895,9 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
870
895
testOverviewRunWorksheetMenuItem. addActionListener(this )
871
896
testOverviewPopupMenu. add(testOverviewRunWorksheetMenuItem)
872
897
testOverviewPopupMenu. add(new JSeparator )
898
+ showTestDescriptionCheckBoxMenuItem = new JCheckBoxMenuItem (UtplsqlResources . getString(" PREF_SHOW_TEST_DESCRIPTION_LABEL" ). replace(" ?" ," " ), true )
899
+ showTestDescriptionCheckBoxMenuItem. addActionListener(this )
900
+ testOverviewPopupMenu. add(showTestDescriptionCheckBoxMenuItem)
873
901
showWarningIndicatorCheckBoxMenuItem = new JCheckBoxMenuItem (UtplsqlResources . getString(" PREF_SHOW_WARNING_INDICATOR_LABEL" ). replace(" ?" ," " ), true )
874
902
showWarningIndicatorCheckBoxMenuItem. addActionListener(this )
875
903
testOverviewPopupMenu. add(showWarningIndicatorCheckBoxMenuItem)
0 commit comments