4 comments

Any suggestions?

This is (was?) a very convenient and powerful API, with legitimate uses.


0

Taras Tielkes wrote:

Any suggestions?

This is (was?) a very convenient and powerful API, with legitimate uses.


What exactly do you need it for? I was able to replace all my usages with
com.intellij.psi.PsiElementFactory.createFileFromText(..., boolean physical).

I believe that should work for you as well.

Sascha

0

Thanks Sascha,

What exactly do you need it for? I was able to replace all my usages
with com.intellij.psi.PsiElementFactory.createFileFromText(...,
boolean physical).


A lot of UI-related dialogs seem to accept it as if it were a real class.
I totally missed the new createFileFromText() variants introduced in the
6.0 API.


I believe that should work for you as well.


It does! (I just pass "new Date().getTime()" for the timestamp). Thanks again.


0

Please sign in to leave a comment.