Skip to main content



      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 03:39 Go to next message
Eclipse UserFriend
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 09: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 05:20 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 22:33:16 EDT 2025

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

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

Back to the top