VirtualFile.putUserData()/ getUserData() question

hi,

i need to manipulate tags (read/write) in a project .ipr file. does open api provide any methods for this so i could get away without using any parsing?

i tried to create a VirtualFile object corresponding to my .ipr file, then call putUserData("tag", "value"). unfortunately, no information actually gets saved in the physical file itself.

what am i doing wrong?
any help will be greatly appreciated :)

1 comment

Do you mean that you need to read/write some settings to .ipr file? In order
to do this you should have a ProjectComponent and make it implemening
JDomExternalizable interface.

--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

"someone" <no_mail@jetbrains.com> wrote in message
news:27949816.1070443067949.JavaMail.javamailuser@localhost...

hi,

>

i need to manipulate tags (read/write) in a project .ipr file. does open

api provide any methods for this so i could get away without using any
parsing?
>

i tried to create a VirtualFile object corresponding to my .ipr file, then

call putUserData("tag", "value"). unfortunately, no information actually
gets saved in the physical file itself.
>

what am i doing wrong?
any help will be greatly appreciated :)



0

Please sign in to leave a comment.