Implements https://github.com/neueda/jetbrains-plugin-graph-database-support/issues/91 on a basic level.
Some functionality may be added before next release, but this provides the bare minimum - two editors in Parameters tab, the second one for parameters specific to the Cypher file open right now. And a button (left column, 3rd button in Graph Database Console) to toggle between using global and file-specific parameters. File-specific params are saved in .json next to global params, a .json for each Cypher file that was opened in the editor.
Tests were modified to ensure that correct params are used when needed.
Future ideas:
Maximize Global parameters editor when a non-Cypher file is opened (and File-specific params editor is hidden). Requires to remember last set JBSplitter proportions to restore when needed
Ensure old .json files with params are deleted (how to determine that they are unneeded if, for example, the project was closed and may be reopened later? Maybe a "clean cache" button or leave as is?)
Hide toggle button on the left after a non-Cypher file was opened (the global/file-specific mode setting may be left as is to restore the correct setting after a Cypher file gets opened)
Implements https://github.com/neueda/jetbrains-plugin-graph-database-support/issues/91 on a basic level. Some functionality may be added before next release, but this provides the bare minimum - two editors in Parameters tab, the second one for parameters specific to the Cypher file open right now. And a button (left column, 3rd button in Graph Database Console) to toggle between using global and file-specific parameters. File-specific params are saved in .json next to global params, a .json for each Cypher file that was opened in the editor. Tests were modified to ensure that correct params are used when needed.
Future ideas: