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 {
39
39
static final String KEY_CLEAR_SCREEN = " clearScreen"
40
40
static final String KEY_AUTO_EXECUTE = " autoExecute"
41
41
static final String KEY_CHECK_RUN_UTPLSQL_TEST = " checkRunUtplsqlTest"
42
+ static final String KEY_USE_SMART_TIMES = " useSmartTimes"
42
43
static final String KEY_NUMBER_OF_RUNS_IN_HISTORY = " numberOfRunsInHistory"
43
44
static final String KEY_SHOW_DISABLED_COUNTER = " showDisabledCounter"
44
45
static final String KEY_SHOW_WARNINGS_COUNTER = " showWarningsCounter"
@@ -110,6 +111,14 @@ class PreferenceModel extends HashStructureAdapter {
110
111
getHashStructure. putBoolean(PreferenceModel . KEY_CHECK_RUN_UTPLSQL_TEST , checkRunUtplsqlTest)
111
112
}
112
113
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
+
113
122
def getNumberOfRunsInHistory () {
114
123
return getHashStructure. getInt(PreferenceModel . KEY_NUMBER_OF_RUNS_IN_HISTORY , 10 )
115
124
}
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class PreferenceModelTest {
30
30
Assert . assertFalse(model. clearScreen)
31
31
Assert . assertTrue(model. autoExecute)
32
32
Assert . assertFalse(model. checkRunUtplsqlTest)
33
+ Assert . assertFalse(model. useSmartTimes)
33
34
Assert . assertEquals(model. numberOfRunsInHistory, 10 )
34
35
Assert . assertFalse(model. showDisabledCounter)
35
36
Assert . assertFalse(model. showWarningsCounter)
You can’t perform that action at this time.
0 commit comments