Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to disable calling viewPart.saveState at some interval(How to disable calling viewPart.saveState at some interval)
How to disable calling viewPart.saveState at some interval [message #1805754] Tue, 23 April 2019 07:39 Go to next message
xin zhang is currently offline xin zhangFriend
Messages: 5
Registered: April 2019
Junior Member
We have one RCP application, and the viewpart overrides the saveState, and we found the saveState is called per 10 minutes or when RCP is closed.

Now our requirement is we don't want the saveState is called per 10 minutes. how could we do from code level?
Re: How to disable calling viewPart.saveState at some interval [message #1805808 is a reply to message #1805754] Wed, 24 April 2019 13:48 Go to previous messageGo to next message
Eclipse UserFriend
My guess is that this is the workbench autosave. This is controlled by the `org.eclipse.ui.workbench/SAVE_AUTOMATICALLY` preference.
Re: How to disable calling viewPart.saveState at some interval [message #1805841 is a reply to message #1805808] Thu, 25 April 2019 09:20 Go to previous message
xin zhang is currently offline xin zhangFriend
Messages: 5
Registered: April 2019
Junior Member
Thanks for your hint, finally I used the below way to resolve the issue, in the Application.java, adding the below code before PlatformUI.createAndRunWorkbench

WorkbenchPlugin.getDefault().getPreferenceStore().setValue(IPreferenceConstants.WORKBENCH_SAVE_INTERVAL, 0);
Previous Topic:Bundle JRE with RCP Product
Next Topic:How to reuse Eclipse3.x workbench on Eclipse4 platform
Goto Forum:
  


Current Time: Tue Apr 23 11:25:29 GMT 2024

Powered by FUDForum. Page generated in 0.02658 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top