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

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -