Saving Modified Files Programmatically in eclipse without using editor [message #1708529] |
Thu, 17 September 2015 06:14 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.26223 seconds