File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
sqldev/src/main/java/org/utplsql/sqldev/menu Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -119,8 +119,13 @@ class UtplsqlController implements Controller {
119
119
if (view instanceof Editor ) {
120
120
val component = view. defaultFocusComponent
121
121
if (component instanceof JEditorPane ) {
122
- val parser = new UtplsqlParser (component. text)
123
- action. enabled = parser. getObjectAt(component. caretPosition) !== null
122
+ val preferences = PreferenceModel . getInstance(Preferences . preferences)
123
+ if (preferences. checkGenerateUtplsqlTest) {
124
+ val parser = new UtplsqlParser (component. text)
125
+ action. enabled = parser. getObjectAt(component. caretPosition) !== null
126
+ } else {
127
+ action. enabled = true
128
+ }
124
129
}
125
130
} else if (view instanceof DBNavigatorWindow ) {
126
131
// multiselection is not supported, use oddgen to generte tests for multiple objects
You can’t perform that action at this time.
0 commit comments