*/
private void installBuilder(String aBuilder) throws CoreException {
IProjectDescription desc = null;
ICommand[] coms = null;
ICommand[] newIc = null;
ICommand command = null;
try {
desc = this.getProject().getDescription();
coms = desc.getBuildSpec();
boolean foundJBuilder = false;
for (int i = 0; i < coms.length; i++) {
if (coms[i].getBuilderName().equals(aBuilder)) {
foundJBuilder = true;
}
}
if (!foundJBuilder) {
command = desc.newCommand();
command.setBuilderName(aBuilder);
newIc = new ICommand[coms.length + 1];
System.arraycopy(coms, 0, newIc, 0, coms.length);
newIc[coms.length] = command;
desc.setBuildSpec(newIc);
this.getProject().setDescription(desc, null);