|
|
|
|
Re: Action during start of Xtext Project [message #1742505 is a reply to message #1741543] |
Fri, 02 September 2016 13:24 |
Akos Kitta Messages: 25 Registered: November 2015 |
Junior Member |
|
|
Sonia Ravindran wrote on Thu, 25 August 2016 17:46Thanks Christian for your quick reply.
Yes when we close and open the project eclipse automatically calls a rebuild.
However , when i open the eclipse with a already opened XText project , then eclipse skips the clean build step. So I just wanted to know whether we can some how call clean build from within our Xtext project programmatically in this case.
Sonia,
could you please elaborate why do you need to clean and rebuild the opened projects after application startup?
By the way, if you just want to perform an arbitrary action at startup time/workbench creation, you could look into the org.eclipse.ui.startup extension point, or if you have your own org.eclipse.equinox.app.IApplication implementation, maybe you could also check the org.eclipse.ui.application.WorkbenchWindowAdvisor#postWindowOpen() method.
If you would like to programmatically trigger a build, you could use something like this:
ResourcesPlugin.getWorkspace().getRoot().getProject("yourProjectName").build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
|
|
|
Powered by
FUDForum. Page generated in 0.03305 seconds