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

0
2 comments

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

0

Hi Karol,

Thank you . let me go through

0

Please sign in to leave a comment.