Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Saving Modified Files Programmatically in eclipse without using editor( need to save all modified files in eclipse without opening it in editors.)
icon5.gif  Saving Modified Files Programmatically in eclipse without using editor [message #1708529] Thu, 17 September 2015 10:14
Jyothish Venuantahn is currently offline Jyothish VenuantahnFriend
Messages: 1
Registered: September 2015
Junior Member
Dear All,
We have a requirement where in we should change code and save say around 50000 files in eclipse RCP programmatically . however I see that in order to save all these file I need to open these files in eclipse editor programmatically. and then call active editors saving code. something like this.

for a single edior
page.saveEditor(page.openEditor(new FileEditorInput(file), desc.getId()), true);
and for a set of editors using
saveAllEditors

However in some machines I get heap size exception , I think this because huge number of editors are to be opened.

So my doubt is ,is there a way I can save all these modified files, (on which some code formatting is done programmatically . however they will be in eclipse workspace) without opening them in eclipse editor. Basically I need to save all modified files in eclipse without opening it in editors. requesting your help on this.

Appreciate your help,
Thanks Much,
Jyothish
Previous Topic:How to get secondary id of active view (multiple instances of same view)?
Next Topic:Enable handler when text is selected
Goto Forum:
  


Current Time: Thu Apr 25 13:39:09 GMT 2024

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

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

Back to the top