JDOMExternalizable replacemnent?

I noticed awhile ago that the JDOMExternalizable interface along with
the DefaultJDOMExternalizer class are deprecated.

I see there theres PersistentStateComponent and
XmlSerializer/XmlSerializerUtil as replacemnents, along with a
com.intellij.openapi.components.State annotation.

Is there any documentation on how one should be using these at all? And
any migration gotchas one should be aware of?

Cheers,
Mark

4 comments

I think examples are all we've got for now:

http://www.google.com/search?q=site:svn.jetbrains.orgPersistentStateComponent

0

I've got this working except for one thing, using $PROJECT_FILE$ macro in the file parameter.

If i use this macro i get:

java.lang.IllegalArgumentException: Unknown macro: $PROJECT_FILE$ in storage spec: $PROJECT_FILE$

But ithe $APP_CONFIG$ macro works fine.
Any idea how i can use the $PROJECT_FILE$ and $MODULE_FILE$ macros ?

0

Hello Hugo,

I've got this working except for one thing, using $PROJECT_FILE$ macro
in the file parameter.

If i use this macro i get:

+java.lang.IllegalArgumentException: Unknown macro: $PROJECT_FILE$
in storage spec: $PROJECT_FILE$+

But ithe $APP_CONFIG$ macro works fine.
Any idea how i can use the $PROJECT_FILE$ and $MODULE_FILE$ macros ?


Maybe you're trying to use $PROJECT_FILE$ in an application-level component?
That won't work.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.