Programatically disabling the Java Builder [message #202290] |
Mon, 02 May 2005 14:50  |
Eclipse User |
|
|
|
We have a project that generates a lot of Java code. Adding the Java
builder results in time-consuming builds. Turning off incremental builds
would not work for us because our plugins use other builders which need to
remain turned on. Essentially, we would like the Java builder to be added
but disabled initially so that the user can enable it when required. Does
anyone have any suggestions?
Thanks.
-Devi
|
|
|
|
Re: Programatically disabling the Java Builder [message #203364 is a reply to message #202475] |
Thu, 12 May 2005 19:13  |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0019_01C5571E.5AAA9010
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Thanks for the suggestion. We already tried this - this method would let =
you add or remove a builder. What I would like to do is add a builder, =
and set it to the DISABLED state programmatically(The equivalent of =
unchecking the check-box for a builder from the Project's Properties =
dialog )
-Devi
"Tobias Widmer" <tobias_widmer@ch.ibm.com> wrote in message =
news:d5a79f$m35$1@news.eclipse.org...
Get the project description via IProject#getDescription and get the =
build=20
spec with IProjectDescription#getBuildSpec()
Search for the ICommand for the Java Builder, create a new ICommand =
array=20
and set the build spec of the project description to the new commands. =
Last,=20
call IProject#setDescription(your_description, null) to set the new=20
builders.
Cheers
Tobias
"devi" <devi.vijayakumar@lawson.com> wrote in message=20
news:aabfde82d56b0ca7a1f8a16781c1acb0$1@www.eclipse.org...
> We have a project that generates a lot of Java code. Adding the Java=20
> builder results in time-consuming builds. Turning off incremental =
builds=20
> would not work for us because our plugins use other builders which =
need to=20
> remain turned on. Essentially, we would like the Java builder to be =
added=20
> but disabled initially so that the user can enable it when required. =
Does=20
> anyone have any suggestions?
>
> Thanks.
> -Devi
>
>=20
------=_NextPart_000_0019_01C5571E.5AAA9010
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4937.800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks for the suggestion. We already =
tried this=20
- this method would let you add or remove a builder. What I would =
like to=20
do is add a builder, and set it to the DISABLED state =
programmatically(The=20
equivalent of unchecking the check-box for a builder from the =
Project's=20
Properties dialog )</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>-Devi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV>"Tobias Widmer" <<A=20
href=3D"mailto:tobias_widmer@ch.ibm.com">tobias_widmer@ch.ibm.com</A>>=
wrote in=20
message <A=20
href=3D"news:d5a79f$m35$1@news.eclipse.org">news:d5a79f$m35$1@news.eclips=
e.org</A>...</DIV>Get=20
the project description via IProject#getDescription and get the build =
<BR>spec=20
with IProjectDescription#getBuildSpec()<BR>Search for the ICommand for =
the Java=20
Builder, create a new ICommand array <BR>and set the build spec of the =
project=20
description to the new commands. Last, <BR>call=20
IProject#setDescription(your_description, null) to set the new=20
<BR>builders.<BR><BR>Cheers<BR><BR>Tobias<BR><BR>"devi " <<A=20
href=3D"mailto:devi.vijayakumar@lawson.com">devi.vijayakumar@lawson.com</=
A>>=20
wrote in message <BR><A=20
href=3D"news:aabfde82d56b0ca7a1f8a16781c1acb0$1@www.eclipse.org">news:aab=
fde82d56b0ca7a1f8a16781c1acb0$1@www.eclipse.org</A>...<BR>>=20
We have a project that generates a lot of Java code. Adding the Java =
<BR>>=20
builder results in time-consuming builds. Turning off incremental builds =
<BR>> would not work for us because our plugins use other builders =
which need=20
to <BR>> remain turned on. Essentially, we would like the Java =
builder to be=20
added <BR>> but disabled initially so that the user can enable it =
when=20
required. Does <BR>> anyone have any suggestions?<BR>><BR>>=20
Thanks.<BR>> -Devi<BR>><BR>> <BR><BR></BODY></HTML>
------=_NextPart_000_0019_01C5571E.5AAA9010--
|
|
|
Powered by
FUDForum. Page generated in 0.05504 seconds