Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to disable "Build Automatically" by default
how to disable "Build Automatically" by default [message #291199] Mon, 12 September 2005 06:49 Go to next message
Eclipse UserFriend
Originally posted by: manish.clovissolutions.com

Hi,
I am trying to turn "Build Automatically" option OFF on new project
creation so that right click on Project displays "Build Project".

I have added the following extension in plugin.xml

-------------------------------------------------------
<extension
id="builders.CodeGenBuilder"
name="Code Generation Builder"
point="org.eclipse.core.resources.builders">

<builder isConfigurable="true">
<run class="com.clovis.cw.workspace.builders.CodeGenBuilder">
<parameter name="optimize" value="true"/>
</run>
</builder>
</extension>
-------------------------------------------------------

AND I have used setBuilding() API as follows:
command.setBuilding(IncrementalProjectBuilder.AUTO_BUILD, false);


I understand that by doing above steps, I have configured the builder
command NOT to respond on Auto Build. But I have yet not turned "Build
Automatically" option to OFF.

How do I do turn this option to OFF programmatically?

thanks
Manish
Re: how to disable "Build Automatically" by default [message #291246 is a reply to message #291199] Mon, 12 September 2005 17:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: john.eclipsefaq.org

Well, the user should really be in charge of whether autobuild is turned
on or not. However, it can be turned off programmatically:

IWorkspace ws = ResourcesPlugin.getWorkspace();
IWorkspaceDescription desc = ws.getDescription();
desc.setAutoBuilding(false);
ws.setDescription(desc);
--

Manish wrote:
> Hi,
> I am trying to turn "Build Automatically" option OFF on new project
> creation so that right click on Project displays "Build Project".
> I have added the following extension in plugin.xml
>
> -------------------------------------------------------
> <extension
> id="builders.CodeGenBuilder"
> name="Code Generation Builder"
> point="org.eclipse.core.resources.builders">
>
> <builder isConfigurable="true">
> <run class="com.clovis.cw.workspace.builders.CodeGenBuilder">
> <parameter name="optimize" value="true"/>
> </run>
> </builder>
> </extension>
> -------------------------------------------------------
>
> AND I have used setBuilding() API as follows:
> command.setBuilding(IncrementalProjectBuilder.AUTO_BUILD,
> false);
>
> I understand that by doing above steps, I have configured the builder
> command NOT to respond on Auto Build. But I have yet not turned "Build
> Automatically" option to OFF.
> How do I do turn this option to OFF programmatically?
>
> thanks
> Manish
>
Re: how to disable "Build Automatically" by default [message #291254 is a reply to message #291246] Mon, 12 September 2005 18:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

But note that would turn it off for all projects, not just your one project.

--
Thanks,
Rich Kulp
Re: how to disable "Build Automatically" by default [message #291267 is a reply to message #291254] Tue, 13 September 2005 02:16 Go to previous message
Eclipse UserFriend
Originally posted by: manish.clovissolutions.com

Thanks guys.

-Manish
Previous Topic:eclipse 3.1 scanning disk on startup !?
Next Topic:Eclipse Run-Time Workbench Falls
Goto Forum:
  


Current Time: Mon Sep 22 07:22:13 EDT 2025

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

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

Back to the top