| Summary: | [e4] ClearPersistedState not working | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Dorota Oli <dorocia0152> | ||||
| Component: | Workbench | Assignee: | Project Inbox <rap.incubator-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | ||||||
| Version: | 3.3 | ||||||
| Target Milestone: | 3.4 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows NT | ||||||
| See Also: |
https://git.eclipse.org/r/111362 https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=5b9912e0c2f09f088cfcadd4f5973003cb54874d |
||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Dorota Oli
Please provide a test project wth the needed steps in order to reproduce the issue. Thanks. Created attachment 271372 [details]
demo project
I added in program arguments flag -clearPersistedState,
Next I run demo project, minimalize part and refresh page (F5).
After load page I have state before refresh. I expected that part won't be minimalized.
In RAP 3.1 work as I expected. I doubt that -clearPersistedState argument was working in the RAP 3.1 (e4 from incubator). The IApplicationContext#getArguments always returns empty APPLICATION_ARGS [1]. In RAP in order to clear the persisted state you have to set it in the E4ApplicationConfig constructor. See [2]. [1] http://git.eclipse.org/c/rap/incubator/org.eclipse.rap.incubator.e4.git/tree/bundles/org.eclipse.rap.e4/src/org/eclipse/rap/e4/E4EntryPointFactory.java#n157 [2] org.eclipse.rap.e4.E4ApplicationConfig.E4ApplicationConfig(String, String, String, boolean, boolean, boolean) New Gerrit change created: https://git.eclipse.org/r/111362 Gerrit change https://git.eclipse.org/r/111362 was merged to [master]. Commit: http://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=5b9912e0c2f09f088cfcadd4f5973003cb54874d |