简体   繁体   English

在两次插件运行之间保存信息的最佳方法是什么?

[英]What is the best way to save information between runs of plugin?

I'm looking for the best way to save user information between two runs of a Plugin for IntelliJ. 我正在寻找在IntelliJ插件两次运行之间保存用户信息的最佳方法。

What is the best way to do that? 最好的方法是什么?

are there special tools of IntelliJ to do that? 有IntelliJ的特殊工具可以做到这一点吗?

Thanks 谢谢

For simple things you can use com.intellij.ide.util.PropertiesComponent interface. 为了简单起见,您可以使用com.intellij.ide.util.PropertiesComponent接口。 If it's not enough, implement com.intellij.openapi.components.PersistentStateComponent interface. 如果还不够,请实现com.intellij.openapi.components.PersistentStateComponent接口。

More information is available here . 在此处获得更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在线程之间传递信息的最佳方式是什么? - What is the best way to pass information between threads? 是否可以在不同(插件)运行之间保存工作区? - Is it possible to save the workspace between different (Plugin) runs? 在Disable()Bukkit插件上保存数据的最佳方法 - Best way to save data onDisable() bukkit plugin 在java中的程序运行之间存储数据的最佳方法? - Best way to store data between program runs in java? 在使用位图的不同活动之间来回切换时节省内存的最佳方法是什么 - what is the best way to save memory while going back and forth between different activities that use bitmaps 在 Java 中节省 epoch 时间的最佳方法是什么? - What is the best way to save epoch time in Java? 在java中的2个不同服务器之间交换信息的最佳方式 - Best way to exchange information between 2 different servers in java 在JavaFX中的Windows之间传递信息的最佳方法是哪一种? - Which is the best way to pass information between windows in JavaFX? 存储口袋妖怪类型游戏信息的最佳方法是什么? - What would be the best way to store information for a Pokemon type game? 找出与给定行号匹配的信息的最佳方法是什么 - What is the Best way to find out the information that match with a given line number
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM