-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Methods annotated with @PersistState have no effect on the saved model XMI in RAP #83
Comments
I checked the original platform code and it looks similar to the one in RAP E4EntryPointFactory. Do I miss something? Is it possible to point us to the code that differ between RAP and RCP? |
For non-RAP I found the following: This is the stack of invocation of the @PersistState annotated methods:
This is the stack of writing the model:
In the code snippet of E4Application.start() you see
|
Do you have a suggestion how to fix it? A pull request will be welcomed. |
Sorry, no idea. My knowledge of the codebase is very limited. |
State written through MPart.getPersistedState().putIfAbsent() is not present in the saved model file.
This happens because invoction of the @PersistState annotated methods happens after the model file has been written.
This is the stack of writing the model:
This is the stack of invocation of the @PersistState annotated methods:
If you compare the stacktraces, you will find that writing the model happens in
E4EntryPointFactory.createWorkbench() line: 85
but invocation of the @PersistState annotated methods happens afterwards, in
E4EntryPointFactory.createWorkbench() line: 86
The text was updated successfully, but these errors were encountered: