Persisting state.

I am trying to persist some basic state and decided to save 1 number:

I have Project component with State class inside it, that prints to stderr which methods of it called.
State has 1 int inside it.

Then I have action that get number in State in Component and change state to next int.

I see that number is increasing (I print number to stderr), but when I reopen project or rerun AppCode(I test it in AppCode because plugin I want to write is for AppCode) the number is 0 again.

What I am miising? I've attached action, component and plugin.xml file.

Thanks in advance.

1 comment
Comment actions Permalink

Made it to work making number not final.


Please sign in to leave a comment.