Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add useSmartTime to preferences
  • Loading branch information
PhilippSalvisberg committed Jul 27, 2019
commit 9b9db36a2573e27995d691741f3c7e68bf699869
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ import javax.swing.JButton
import javax.swing.JCheckBox
import javax.swing.JOptionPane
import javax.swing.JPanel
import javax.swing.JSeparator
import javax.swing.JSpinner
import javax.swing.JTabbedPane
import javax.swing.JTextField
import javax.swing.SpinnerNumberModel
import javax.swing.SwingConstants
import javax.swing.table.DefaultTableModel
import oracle.dbtools.raptor.templates.CodeTemplateUtil
import oracle.ide.panels.DefaultTraversablePanel
Expand All @@ -45,6 +47,7 @@ class PreferencePanel extends DefaultTraversablePanel {
val JCheckBox clearScreenCheckBox = new JCheckBox
val JCheckBox autoExecuteCheckBox = new JCheckBox
val JCheckBox checkRunUtplsqlTestCheckBox = new JCheckBox
val JCheckBox useSmartTimesCheckBox = new JCheckBox
val JButton importSnippetsButton = new JButton(UtplsqlResources.getString("PREF_IMPORT_SNIPPETS_BUTTON_LABEL"))
val JPanel realtimeReporterPanel = new JPanel
val SpinnerNumberModel numberOfRunsInHistoryModel = new SpinnerNumberModel(1, 1, 100, 1);
Expand Down Expand Up @@ -104,6 +107,10 @@ class PreferencePanel extends DefaultTraversablePanel {
runTab.add(
runTab.field.label.withText(UtplsqlResources.getString("PREF_CHECK_RUN_UTPLSQL_TEST_LABEL")).component(
checkRunUtplsqlTestCheckBox))
runTab.add(
runTab.field.label.withText(UtplsqlResources.getString("PREF_USE_SMART_TIMES_LABEL")).component(
useSmartTimesCheckBox))
runTab.addRow(new JSeparator(SwingConstants.HORIZONTAL))
runTab.addRow(importSnippetsButton)
runTab.addVerticalSpring

Expand Down Expand Up @@ -336,6 +343,7 @@ class PreferencePanel extends DefaultTraversablePanel {
clearScreenCheckBox.selected = info.clearScreen
autoExecuteCheckBox.selected = info.autoExecute
checkRunUtplsqlTestCheckBox.selected = info.checkRunUtplsqlTest
useSmartTimesCheckBox.selected = info.useSmartTimes
numberOfRunsInHistorySpinner.value = info.numberOfRunsInHistory
showDisabledCounterCheckBox.selected = info.showDisabledCounter
showWarningsCounterCheckBox.selected = info.showWarningsCounter
Expand Down Expand Up @@ -371,6 +379,7 @@ class PreferencePanel extends DefaultTraversablePanel {
info.autoExecute = autoExecuteCheckBox.selected
info.numberOfRunsInHistory = numberOfRunsInHistorySpinner.value as Integer
info.checkRunUtplsqlTest = checkRunUtplsqlTestCheckBox.selected
info.useSmartTimes = useSmartTimesCheckBox.selected
info.showDisabledCounter = showDisabledCounterCheckBox.selected
info.showWarningsCounter = showWarningsCounterCheckBox.selected
info.showInfoCounter = showInfoCounterCheckBox.selected
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ PREF_RESET_PACKAGE_LABEL=Reset package before running utPLSQL?
PREF_CLEAR_SCREEN_LABEL=Clear script output panel before running utPLSQL?
PREF_AUTO_EXECUTE_LABEL=Execute unit test automatically?
PREF_CHECK_RUN_UTPLSQL_TEST_LABEL=Check availability of menu option?
PREF_USE_SMART_TIMES_LABEL=Use smart times?
PREF_IMPORT_SNIPPETS_BUTTON_LABEL=Import Snippets
MENU_REALTIME_REPORTER_LABEL=Realtime Reporter
PREF_NUMBER_OF_RUNS_IN_HISTORY_LABEL=Number of runs in history
Expand Down Expand Up @@ -89,7 +90,7 @@ RUNNER_NO_TESTS_FOUND_TEXT=No tests found.
RUNNER_RUN_MENUITEM=Run test
RUNNER_RUN_WORKSHEET_MENUITEM=Run test in new worksheet
RUNNER_TEST_ID_COLUMN=Suitepath
RUNNER_TEST_EXECUTION_TIME_COLUMN=Time [s]
RUNNER_TEST_EXECUTION_TIME_COLUMN=Time
RUNNER_OWNER_LABEL=Owner
RUNNER_PACKAGE_LABEL=Package
RUNNER_PROCEDURE_LABEL=Procedure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PREF_RESET_PACKAGE_LABEL=Package vor der Ausf
PREF_CLEAR_SCREEN_LABEL=Skriptausgabe-Fenster vor der Ausf�hrung von utPLSQL leeren?
PREF_AUTO_EXECUTE_LABEL=Unit Test automatisch ausf�hren?
PREF_CHECK_RUN_UTPLSQL_TEST_LABEL=Verf�gbarkeit der Men�option pr�fen?
PREF_USE_SMART_TIMES_LABEL=Smarte Zeitangaben verwenden?
PREF_IMPORT_SNIPPETS_BUTTON_LABEL=Code-Schnipsel importieren
MENU_REALTIME_REPORTER_LABEL=Realtime Reporter
PREF_NUMBER_OF_RUNS_IN_HISTORY_LABEL=Anzahl Ausf�hrungen in der Historie
Expand Down Expand Up @@ -66,7 +67,7 @@ RUNNER_NO_TESTS_FOUND_TEXT=Keine Tests gefunden.
RUNNER_RUN_MENUITEM=Run testTest ausf�hren
RUNNER_RUN_WORKSHEET_MENUITEM=Test in neuem Arbeitsblatt ausf�hruen
RUNNER_TEST_ID_COLUMN_NAME=Suitepath
RUNNER_TEST_EXECUTION_TIME_COLUMN_NAME=Zeit [s]
RUNNER_TEST_EXECUTION_TIME_COLUMN_NAME=Zeit
RUNNER_OWNER_LABEL=Besitzer
RUNNER_PACKAGE_LABEL=Paket
RUNNER_PROCEDURE_LABEL=Prozedur
Expand Down