How to read RunConfiguration in ProgramRunner Follow
I've made a simple plug-in that lets me invoke a custom ProgramRunner which sends (via HTTP) the contents the active document to an application server for execution - and whose Host/Post, Credentials are set in a custom RunConfiguration.
Everything is working pretty well, except I don't understand how to read the RunConfiguration values, set by the user in the custom ProgramRunnner (ie. I need to read the host and port/credentials to know how to construct the HTTP request).
My Configuration extends RunConfigurationBase, and is very "dumb" in that it sets the settingEditor to my custom SettingsEditor implementation in the cstor, and getConfigurationEditor returns said settingEditor. Looking at example code, it seems like others have getters/setters for fields? But I don't understand how those are invoked - I assumed the RunConfigurationBase, SettingsEditor, etc. took care of the persistence and read-back for me?
Thanks!
Please sign in to leave a comment.
Please see http://www.jetbrains.org/intellij/sdk/docs/basics/run_configurations/run_configuration_management.html#persistence
For others running into the same, I eventually figured it out and posted a (hopefully) much clearer and complete answer to this on stack overflow: https://stackoverflow.com/questions/55801272/how-to-persist-read-back-run-configuration-parameters-in-intellij-plugin/55859815#55859815