eclipse plugin - XTEXT based DSL Save All before Build -


i have eclipse rcp dsl application. build option not work in case end user not save manually changed files. need find following : - can save dsl source file automatically when user click "build all" menu item. other hand have set "save before build" option programmaticaly

thank alex

there 'save automatically before build' option in preferences in 'general > workspace'.

if option set build action like:

iworkbenchwindow[] windows = platformui.getworkbench().getworkbenchwindows();  (iworkbenchwindow window : windows) {     iworkbenchpage[] pages = window.getpages();      (iworkbenchpage page : pages) {         page.savealleditors(false);     } } 

Comments

Popular posts from this blog

How to run C# code using mono without Xamarin in Android? -

c# - SharpSsh Command Execution -

python - Specify path of savefig with pylab or matplotlib -