I'm working in a plugin that integrates a bit with the com.intellij.database plugin for database detection.
I'm trying to implement a quickfix that generates code, and I would like to paste this code in a console for an existing database connection. If there is no open console, it should open one. Something like this (pseudo code):
var codeToRunInDb = generateCode();
var editorForConnection = getEditorForConnection(connection);
Is this something feasible without depending on internals of the database plugin? If it depends on the internals of the plugin, where can I find how to integrate with the plugin?
Thanks a lot,