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
Post a Comment