Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to programmatically set "Build automatically" option in Eclipse workbench?
How to programmatically set "Build automatically" option in Eclipse workbench? [message #519880] Wed, 10 March 2010 10:44 Go to next message
Ibrahim  is currently offline Ibrahim Friend
Messages: 8
Registered: February 2010
Junior Member
Hi,

I would like to know how to programmatically set the "Build automatically" option, if it is not enabled by default in Eclipse workbench?

I can place the code in my plugin Activator.start() method by checking


IWorkspace workspace = ResourcesPlugin.getWorkspace();
		if(!workspace.isAutoBuilding()) {

         <set the workbench build automatically>

}
Re: How to programmatically set "Build automatically" option in Eclipse workbench? [message #519889 is a reply to message #519880] Wed, 10 March 2010 11:29 Go to previous message
Ibrahim  is currently offline Ibrahim Friend
Messages: 8
Registered: February 2010
Junior Member
ok, got that solved.

IWorkspace workspace = ResourcesPlugin.getWorkspace();
if( ! workspace.isAutoBuilding() ) {
try {
IWorkspaceDescription desc = workspace.getDescription();
desc.setAutoBuilding(true);
workspace.setDescription(desc);
} catch (CoreException e) {
e.printStackTrace();
}
}

Thanks to:
http://dev.eclipse.org/mhonarc/lists/cdt-dev/msg14190.html
Previous Topic:[Databinding] Modifying properties of bindings in a TableViewer
Next Topic:Ganymede and accents
Goto Forum:
  


Current Time: Sat Jul 27 15:42:59 GMT 2024

Powered by FUDForum. Page generated in 0.02384 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top