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
请先登录再写评论。
I think examples are all we've got for now:
http://www.google.com/search?q=site:svn.jetbrains.orgPersistentStateComponent
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 ?
Hello Hugo,
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!"
Yep, that was it.
Thanks.