IProject project = getProject();  System.out.println("configure - "+project);  IProjectDescription desc = project.getDescription();  ICommand bc[] = desc.getBuildSpec();  boolean found = false;  for (int i = 0; i < bc.length; i++) { if (bc[i].getBuilderName().equals (ANT_BUILDER_ID)) { found = true; } } if (!found) { List buildCommands = new ArrayList(Arrays.asList(bc)); ICommand newCommand = desc.newCommand(); newCommand.setBuilderName(ANT_BUILDER_ID); buildCommands.add(newCommand); desc.setBuildSpec((ICommand[])buildCommands.toArray(new ICommand[buildCommands.size()])); project.setDescription(desc, null); } }
WOLipsProject woLipsProject = new WOLipsProject(this.getProject()); if(!woLipsProject.getBuilderAccessor().isBuilderInstalled(ANT_BUILDER_ID)) woLipsProject.getBuilderAccessor().installBuilder(ANT_BUILDER_ID); }
	 public void configure() throws CoreException {	   IProject project = getProject();	   System.out.println("configure - "+project);    	   IProjectDescription desc = project.getDescription();    	   ICommand bc[] = desc.getBuildSpec();    	   boolean found = false;    	   for (int i = 0; i < bc.length; i++) {		 if (bc[i].getBuilderName().equals (ANT_BUILDER_ID)) {		   found = true;		 }	   }   if (!found) {		 List buildCommands = new ArrayList(Arrays.asList(bc));		 ICommand newCommand = desc.newCommand();		 newCommand.setBuilderName(ANT_BUILDER_ID);		 buildCommands.add(newCommand);		 desc.setBuildSpec((ICommand[])buildCommands.toArray(new ICommand[buildCommands.size()]));		 project.setDescription(desc, null);	   }   }