Plugin ToolWindow saving preferences
Answered
Hi Team,
I have a IJ plugin implemented which opens a ToolWindow . While running plugin I will in put few details with in tool window to start executing the application attached to this plugin . After restarting I loose all my previous in put history within tool window . any way to save those preferences which will not loose with IJ restarts?
Please advise
Please sign in to leave a comment.
Hi,
Yes. You should store the provided values in a persistent state component: https://plugins.jetbrains.com/docs/intellij/persisting-state-of-components.html
Also, consider implementing Execution/Run Configuration API if your use case is to run applications: https://plugins.jetbrains.com/docs/intellij/execution.html
Hi Karol,
Thank you . let me go through