@@ -98,6 +98,7 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
9898 JTable testOverviewTable
9999 JMenuItem testOverviewRunMenuItem
100100 JMenuItem testOverviewRunWorksheetMenuItem
101+ JCheckBoxMenuItem showTestDescriptionCheckBoxMenuItem
101102 JCheckBoxMenuItem showWarningIndicatorCheckBoxMenuItem
102103 JCheckBoxMenuItem showInfoIndicatorCheckBoxMenuItem
103104 JCheckBoxMenuItem syncDetailTabCheckBoxMenuItem
@@ -157,6 +158,16 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
157158 }
158159 }
159160
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+
160171 private def applyShowDisabledCounter (boolean show ) {
161172 disabledCounterValueLabel. parent. visible = showDisabledCounterCheckBoxMenuItem. selected
162173 }
@@ -168,6 +179,13 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
168179 private def applyShowInfoCounter (boolean show ) {
169180 infoCounterValueLabel. parent. visible = showInfoCounterCheckBoxMenuItem. selected
170181 }
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+ }
171189
172190 private def applyShowWarningIndicator (boolean show ) {
173191 val col = testOverviewTable. columnModel. getColumn(1 )
@@ -300,6 +318,7 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
300318
301319 private def applyPreferences () {
302320 val PreferenceModel preferences = preferenceModel
321+ applyShowNumberOfRunsInHistory(preferences. numberOfRunsInHistory)
303322 showDisabledCounterCheckBoxMenuItem. selected = preferences. showDisabledCounter
304323 applyShowDisabledCounter(showDisabledCounterCheckBoxMenuItem. selected)
305324 fixCheckBoxMenuItem(showDisabledCounterCheckBoxMenuItem)
@@ -309,6 +328,9 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
309328 showInfoCounterCheckBoxMenuItem. selected = preferences. showInfoCounter
310329 applyShowInfoCounter(showInfoCounterCheckBoxMenuItem. selected)
311330 fixCheckBoxMenuItem(showInfoCounterCheckBoxMenuItem)
331+ showTestDescriptionCheckBoxMenuItem. selected = preferences. showTestDescription
332+ applyShowTestDescription(showTestDescriptionCheckBoxMenuItem. selected)
333+ fixCheckBoxMenuItem(showTestDescriptionCheckBoxMenuItem)
312334 showWarningIndicatorCheckBoxMenuItem. selected = preferences. showWarningIndicator
313335 applyShowWarningIndicator(showWarningIndicatorCheckBoxMenuItem. selected)
314336 fixCheckBoxMenuItem(showWarningIndicatorCheckBoxMenuItem)
@@ -328,7 +350,7 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
328350 private def setCurrentRun (Run run ) {
329351 if (run !== currentRun) {
330352 currentRun = run
331- testOverviewTableModel. model = run. tests
353+ testOverviewTableModel. setModel( run. tests, showTestDescriptionCheckBoxMenuItem . selected)
332354 resetDerived
333355 val item = new ComboBoxItem<String , String > (currentRun. reporterId, currentRun. name)
334356 runComboBox. selectedItem = item
@@ -451,6 +473,9 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
451473 } else if (e. source == showInfoCounterCheckBoxMenuItem) {
452474 applyShowInfoCounter(showInfoCounterCheckBoxMenuItem. selected)
453475 fixCheckBoxMenuItem(showInfoCounterCheckBoxMenuItem)
476+ } else if (e. source == showTestDescriptionCheckBoxMenuItem) {
477+ applyShowTestDescription(showTestDescriptionCheckBoxMenuItem. selected)
478+ fixCheckBoxMenuItem(showTestDescriptionCheckBoxMenuItem)
454479 } else if (e. source == showWarningIndicatorCheckBoxMenuItem) {
455480 applyShowWarningIndicator(showWarningIndicatorCheckBoxMenuItem. selected)
456481 fixCheckBoxMenuItem(showWarningIndicatorCheckBoxMenuItem)
@@ -870,6 +895,9 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
870895 testOverviewRunWorksheetMenuItem. addActionListener(this )
871896 testOverviewPopupMenu. add(testOverviewRunWorksheetMenuItem)
872897 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)
873901 showWarningIndicatorCheckBoxMenuItem = new JCheckBoxMenuItem (UtplsqlResources . getString(" PREF_SHOW_WARNING_INDICATOR_LABEL" ). replace(" ?" ," " ), true )
874902 showWarningIndicatorCheckBoxMenuItem. addActionListener(this )
875903 testOverviewPopupMenu. add(showWarningIndicatorCheckBoxMenuItem)
0 commit comments