Not able to use com.intellij.database in a plugin

I am trying to develop a plugin which would generate some code using a Table from the database tools window.
Somewhat similar to https://github.com/yseasony/idea-sql-generator-tool
But the DatabaseView class in getting resolved. I tried using 

<depends optional="true">com.intellij.database</depends>

in plugin.xml similar to the plugin mentioned>but that too cannot be resolved. How do I fix this? 

1 comment

You need to add the following to IntelliJ SDK:

/plugins/DatabaseSupport/lib/database-openapi.jar

And optionally its sources:

/lib/src/src_database-openapi.zip
0

Please sign in to leave a comment.