File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
main/java/org/utplsql/sqldev/model/preference
test/java/org/utplsql/sqldev/test/preference Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ class PreferenceModel extends HashStructureAdapter {
3939 static final String KEY_CLEAR_SCREEN = " clearScreen"
4040 static final String KEY_AUTO_EXECUTE = " autoExecute"
4141 static final String KEY_CHECK_RUN_UTPLSQL_TEST = " checkRunUtplsqlTest"
42+ static final String KEY_USE_SMART_TIMES = " useSmartTimes"
4243 static final String KEY_NUMBER_OF_RUNS_IN_HISTORY = " numberOfRunsInHistory"
4344 static final String KEY_SHOW_DISABLED_COUNTER = " showDisabledCounter"
4445 static final String KEY_SHOW_WARNINGS_COUNTER = " showWarningsCounter"
@@ -110,6 +111,14 @@ class PreferenceModel extends HashStructureAdapter {
110111 getHashStructure. putBoolean(PreferenceModel . KEY_CHECK_RUN_UTPLSQL_TEST , checkRunUtplsqlTest)
111112 }
112113
114+ def isUseSmartTimes () {
115+ return getHashStructure. getBoolean(PreferenceModel . KEY_USE_SMART_TIMES , false )
116+ }
117+
118+ def setUseSmartTimes (boolean useSmartTimes ) {
119+ getHashStructure. putBoolean(PreferenceModel . KEY_USE_SMART_TIMES , useSmartTimes)
120+ }
121+
113122 def getNumberOfRunsInHistory () {
114123 return getHashStructure. getInt(PreferenceModel . KEY_NUMBER_OF_RUNS_IN_HISTORY , 10 )
115124 }
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class PreferenceModelTest {
3030 Assert . assertFalse(model. clearScreen)
3131 Assert . assertTrue(model. autoExecute)
3232 Assert . assertFalse(model. checkRunUtplsqlTest)
33+ Assert . assertFalse(model. useSmartTimes)
3334 Assert . assertEquals(model. numberOfRunsInHistory, 10 )
3435 Assert . assertFalse(model. showDisabledCounter)
3536 Assert . assertFalse(model. showWarningsCounter)
You can’t perform that action at this time.
0 commit comments