Temp storage for files

Answered

Where\how to store temp files? For example user can replace some FileTemplate, this action must be undoable. Is it ok to keep content of file as String field in undo action? 

2 comments
Comment actions Permalink

I'm not sure I understand what you're referring here to. Do you mean File | Settings | Editor | File and Code Templates ? Unless you click "Apply" or "OK" settings won't be changed.

0
Comment actions Permalink

Issue fixed. I replaced native java.io functionality with IDEA API which sup Undo, so i don't need to care about storing temp files.

P.S. yep it's File and Code Templates, my tempaltes depends on FileTemplates so my export\import system may delete\replace\add FileTemplates silently via PSI API.

0

Please sign in to leave a comment.