how to use JDOMExternalizable to save user's settings ?

when I close then open one project, the settings not load .

who can teach me how to use this interface to save the settings in the "settings Panel"

thx.

4 comments

Where are two interfaces: ApplicationComponent and ProjectComponent. You
must also implement JDOMExtenalizable interface.

So, if you use ApplicationComponent + JDOMExtenalizable, then settings put
in application config folder.

If you use ProjectComponent + JDOMExtenalizable, then settings will put into
project or IWS file.

Thanks!

"Dragon" <no_mail@jetbrains.com> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
news:20635564.1078802307422.JavaMail.itn@is.intellij.net...

when I close then open one project, the settings not load .

>

who can teach me how to use this interface to save the settings in the

"settings Panel"
>

thx.



0

One could look how it is done in other plugins sources, e.g. in FunkySearch http://www.intellij.org/twiki/bin/view/Main/FunkySearch user settings is shown and saved in Configuration class.

0

thx all!

btw:

If you use ProjectComponent + JDOMExtenalizable, then settings will put into
project .ipr file


"Dragon" <no_mail@jetbrains.com> wrote in message
news:20635564.1078802307422.JavaMail.itn@is.intellij.net...

when I close then open one project, the settings not load .

>

who can teach me how to use this interface to save the settings in the

"settings Panel"
>

thx.



0

And if one sets ]]> in project-components, component part of plugin descriptor (plugin.xml) then settings will be stored in workspace file (iws). Writing the plugins I found that workspace is updated more often then project file.

Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.