@@ -44,11 +44,14 @@ class PreferencePanel extends DefaultTraversablePanel {
44
44
val JCheckBox autoExecuteCheckBox = new JCheckBox
45
45
val JCheckBox checkRunUtplsqlTestCheckBox = new JCheckBox
46
46
val JPanel realtimeReporterPanel = new JPanel
47
+ val SpinnerNumberModel numberOfRunsInHistoryModel = new SpinnerNumberModel (10 , 1 , 100 , 1 );
48
+ val JSpinner numberOfRunsInHistorySpinner = new JSpinner (numberOfRunsInHistoryModel);
47
49
val JCheckBox showDisabledCounterCheckBox = new JCheckBox
48
50
val JCheckBox showWarningsCounterCheckBox = new JCheckBox
49
51
val JCheckBox showInfoCounterCheckBox = new JCheckBox
50
52
val JCheckBox showWarningIndicatorCheckBox = new JCheckBox
51
53
val JCheckBox showInfoIndicatorCheckBox = new JCheckBox
54
+ val JCheckBox showTestDescriptionCheckBox = new JCheckBox
52
55
val JCheckBox syncDetailTabCheckBox = new JCheckBox
53
56
val JPanel generateTestPanel = new JPanel ();
54
57
val JTextField testPackagePrefixTextField = new JTextField
@@ -103,6 +106,10 @@ class PreferencePanel extends DefaultTraversablePanel {
103
106
// realtime reporter group
104
107
val FieldLayoutBuilder rrTab = new FieldLayoutBuilder (realtimeReporterPanel)
105
108
rrTab. alignLabelsLeft = true
109
+
110
+ rrTab. add(
111
+ runTab. field. label. withText(UtplsqlResources . getString(" PREF_NUMBER_OF_RUNS_IN_HISTORY_LABEL" )). component(
112
+ numberOfRunsInHistorySpinner))
106
113
rrTab. add(
107
114
runTab. field. label. withText(UtplsqlResources . getString(" PREF_SHOW_DISABLED_COUNTER_LABEL" )). component(
108
115
showDisabledCounterCheckBox))
@@ -118,6 +125,9 @@ class PreferencePanel extends DefaultTraversablePanel {
118
125
rrTab. add(
119
126
runTab. field. label. withText(UtplsqlResources . getString(" PREF_SHOW_INFO_INDICATOR_LABEL" )). component(
120
127
showInfoIndicatorCheckBox))
128
+ rrTab. add(
129
+ runTab. field. label. withText(UtplsqlResources . getString(" PREF_SHOW_TEST_DESCRIPTION_LABEL" )). component(
130
+ showTestDescriptionCheckBox))
121
131
rrTab. add(
122
132
runTab. field. label. withText(UtplsqlResources . getString(" PREF_SYNC_DETAIL_TAB_LABEL" )). component(
123
133
syncDetailTabCheckBox))
@@ -306,11 +316,13 @@ class PreferencePanel extends DefaultTraversablePanel {
306
316
clearScreenCheckBox.selected = info.clearScreen
307
317
autoExecuteCheckBox.selected = info.autoExecute
308
318
checkRunUtplsqlTestCheckBox.selected = info.checkRunUtplsqlTest
319
+ numberOfTestsPerUnitSpinner.value = info.numberOfRunsInHistory
309
320
showDisabledCounterCheckBox.selected = info.showDisabledCounter
310
321
showWarningsCounterCheckBox.selected = info.showWarningsCounter
311
322
showInfoCounterCheckBox.selected = info.showInfoCounter
312
323
showWarningIndicatorCheckBox.selected = info.showWarningIndicator
313
324
showInfoIndicatorCheckBox.selected = info.showInfoIndicator
325
+ showTestDescriptionCheckBox.selected = info.showTestDescription
314
326
syncDetailTabCheckBox.selected = info.syncDetailTab
315
327
testPackagePrefixTextField.text = info.testPackagePrefix
316
328
testPackageSuffixTextField.text = info.testPackageSuffix
@@ -337,12 +349,14 @@ class PreferencePanel extends DefaultTraversablePanel {
337
349
info.resetPackage = resetPackageCheckBox.selected
338
350
info.clearScreen = clearScreenCheckBox.selected
339
351
info.autoExecute = autoExecuteCheckBox.selected
352
+ info.numberOfRunsInHistory = numberOfTestsPerUnitSpinner.value as Integer
340
353
info.checkRunUtplsqlTest = checkRunUtplsqlTestCheckBox.selected
341
354
info.showDisabledCounter = showDisabledCounterCheckBox.selected
342
355
info.showWarningsCounter = showWarningsCounterCheckBox.selected
343
356
info.showInfoCounter = showInfoCounterCheckBox.selected
344
357
info.showWarningIndicator = showWarningIndicatorCheckBox.selected
345
358
info.showInfoIndicator = showInfoIndicatorCheckBox.selected
359
+ info.showTestDescription = showTestDescriptionCheckBox.selected
346
360
info.syncDetailTab = syncDetailTabCheckBox.selected
347
361
info.testPackagePrefix = testPackagePrefixTextField.text
348
362
info.testPackageSuffix = testPackageSuffixTextField.text
0 commit comments