How to persist a DefaultMutableTreeNode ?
已回答
Hi there,
I'm developing a plguin,and i get a problem, i build a tree by DefaultMutableTreeNode ,when i use @State、@Storage to persist this data, it doesn't work well, So i read the document of DefaultMutableTreeNode , it shows me that i can use XMLEnocoer.
I persist the data successfully with XMLEncoder,and I store the file in the respective folder .idea,
however, when i open two intellj idea tools , i persist the data in the first idea tool , and the data is showed in the second idea idea tool,it should has been showed in the first tool
i don't know why and could you give some advice, Thank you in advance
请先登录再写评论。
Not sure I understand. Do you open the same project in two different IDEs simultaneously? That's expected behavior then.
Yann Cebron
Let me describe this situation in detail
btw , these two IDES open two different projects
and i draw a picture to help you to understand what i am saying :)
Nothing to add to my previous answer. Config files are not "per open IDE instance".