◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ class PreferenceModel extends HashStructureAdapter {
static final String KEY_SHOW_INFO_COUNTER = "showInfoCounter"
static final String KEY_SHOW_WARNING_INDICATOR = "showWarningIndicator"
static final String KEY_SHOW_INFO_INDICATOR = "showInfoIndicator"
static final String KEY_SHOW_TEST_DESCRIPTION = "showTestDescription"
static final String KEY_SYNC_DETAIL_TAB = "syncDetailTab"
static final String KEY_TEST_PACKAGE_PREFIX = "testPackagePrefix"
Expand Down Expand Up @@ -166,6 +168,22 @@ class PreferenceModel extends HashStructureAdapter {
def setShowInfoIndicator(boolean showInfoIndicator) {
getHashStructure.putBoolean(PreferenceModel.KEY_SHOW_INFO_INDICATOR, showInfoIndicator)
}

def isShowTestDescription() {
return getHashStructure.getBoolean(PreferenceModel.KEY_SHOW_TEST_DESCRIPTION, false)
Original file line number Diff line number Diff line change
@@ -45,6 +45,7 @@ import javax.swing.JSplitPane
import javax.swing.JTabbedPane
import javax.swing.JTable
import javax.swing.RepaintManager
import javax.swing.SwingConstants
import javax.swing.Timer
import javax.swing.UIManager
Expand All @@ -55,6 +56,7 @@ import javax.swing.event.ListSelectionEvent
import javax.swing.event.ListSelectionListener
import javax.swing.plaf.basic.BasicProgressBarUI
import javax.swing.table.DefaultTableCellRenderer
import oracle.dbtools.raptor.controls.grid.DefaultDrillLink
import oracle.dbtools.raptor.utils.Connections
import oracle.ide.config.Preferences
Expand Down Expand Up @@ -105,6 +107,8 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
JCheckBoxMenuItem showTestDescriptionCheckBoxMenuItem
JCheckBoxMenuItem showWarningIndicatorCheckBoxMenuItem
JCheckBoxMenuItem showInfoIndicatorCheckBoxMenuItem
JCheckBoxMenuItem syncDetailTabCheckBoxMenuItem
RunnerTextField testOwnerTextField
RunnerTextField testPackageTextField
Expand Down Expand Up @@ -220,6 +224,30 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
col.preferredWidth = 0
}
}

private def openSelectedTest() {
val rowIndex = testOverviewTable.selectedRow
Expand Down Expand Up @@ -338,6 +366,9 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
fixCheckBoxMenuItem(showWarningIndicatorCheckBoxMenuItem)
showInfoIndicatorCheckBoxMenuItem.selected = preferences.showInfoIndicator
applyShowInfoIndicator(showInfoIndicatorCheckBoxMenuItem.selected)
fixCheckBoxMenuItem(showInfoIndicatorCheckBoxMenuItem)
syncDetailTabCheckBoxMenuItem.selected = preferences.syncDetailTab
fixCheckBoxMenuItem(syncDetailTabCheckBoxMenuItem)
Expand Down Expand Up @@ -380,10 +411,13 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
testOverviewTableModel.fireTableDataChanged
} else {
if (testOverviewTableModel.rowCount > row) {
val positionOfCurrentTest = testOverviewTable.getCellRect(row, 0, true);
testOverviewTable.scrollRectToVisible = positionOfCurrentTest
testOverviewTableModel.fireTableRowsUpdated(row, row)
Thread.sleep(5) // reduce flickering
testOverviewTable.scrollRectToVisible = positionOfCurrentTest
}
}
Expand Down Expand Up @@ -485,6 +519,12 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
} else if (e.source == showInfoCounterCheckBoxMenuItem) {
applyShowInfoCounter(showInfoCounterCheckBoxMenuItem.selected)
fixCheckBoxMenuItem(showInfoCounterCheckBoxMenuItem)
} else if (e.source == showTestDescriptionCheckBoxMenuItem) {
applyShowTestDescription(showTestDescriptionCheckBoxMenuItem.selected)
fixCheckBoxMenuItem(showTestDescriptionCheckBoxMenuItem)
Expand Down Expand Up @@ -943,6 +983,13 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
testOverviewRunWorksheetMenuItem.addActionListener(this)
testOverviewPopupMenu.add(testOverviewRunWorksheetMenuItem)
testOverviewPopupMenu.add(new JSeparator)
showTestDescriptionCheckBoxMenuItem = new JCheckBoxMenuItem(UtplsqlResources.getString("PREF_SHOW_TEST_DESCRIPTION_LABEL").replace("?",""), true)
showTestDescriptionCheckBoxMenuItem.addActionListener(this)
testOverviewPopupMenu.add(showTestDescriptionCheckBoxMenuItem)
Expand All @@ -956,6 +1003,7 @@ class RunnerPanel implements ActionListener, MouseListener, HyperlinkListener {
syncDetailTabCheckBoxMenuItem.addActionListener(this)
testOverviewPopupMenu.add(syncDetailTabCheckBoxMenuItem)
testOverviewTable.componentPopupMenu = testOverviewPopupMenu

// Test tabbed pane (Test Properties)
val testInfoPanel = new ScrollablePanel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ PREF_SHOW_WARNINGS_COUNTER_LABEL=Show warnings counter?
PREF_SHOW_INFO_COUNTER_LABEL=Show info counter?
PREF_SHOW_WARNING_INDICATOR_LABEL=Show warning indicator?
PREF_SHOW_INFO_INDICATOR_LABEL=Show info indicator?
PREF_SHOW_TEST_DESCRIPTION_LABEL=Show description (if present)?
PREF_SYNC_DETAIL_TAB_LABEL=Synchronize detail tab based on test status?
PREF_TEST_PACKAGE_PREFIX_LABEL=Test package prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ PREF_SHOW_WARNINGS_COUNTER_LABEL=Warnungen-Z
PREF_SHOW_INFO_COUNTER_LABEL=Info-Z�hler anzeigen?
PREF_SHOW_WARNING_INDICATOR_LABEL=Warnung-Indikator anzeigen?
PREF_SHOW_INFO_INDICATOR_LABEL=Info-Indikator anzeigen?
PREF_SHOW_TEST_DESCRIPTION_LABEL=Beschreibung anzeigen (falls vorhanden)?
PREF_SYNC_DETAIL_TAB_LABEL=Detailansicht basierend auf dem Teststatus synchronisieren?
PREF_TEST_PACKAGE_PREFIX_LABEL=Test Package Pr�fix
Expand Down
Toggle all file notes Toggle all file annotations