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

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -