Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 520494

Summary: [e4] ClearPersistedState not working
Product: [RT] RAP Reporter: Dorota Oli <dorocia0152>
Component: WorkbenchAssignee: 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 Flags
demo project none

Description Dorota Oli CLA 2017-08-03 02:43:38 EDT
After minimalize view, and refresh website I have minimalized toolbar with part and open part in partsashcontainer.
Comment 1 Ivan Furnadjiev CLA 2017-08-11 05:20:08 EDT
Please provide a test project wth the needed steps in order to reproduce the issue. Thanks.
Comment 2 Dorota Oli CLA 2017-11-08 07:20:29 EST
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.
Comment 3 Dorota Oli CLA 2017-11-08 07:23:00 EST
In RAP 3.1 work as I expected.
Comment 4 Ivan Furnadjiev CLA 2017-11-10 04:41:35 EST
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)
Comment 5 Eclipse Genie CLA 2017-11-10 04:59:55 EST
New Gerrit change created: https://git.eclipse.org/r/111362