List of usage examples for org.eclipse.jdt.internal.core.builder IncrementalImageBuilder IncrementalImageBuilder
protected IncrementalImageBuilder(JavaBuilder javaBuilder)
From source file:org.eclipse.jdt.internal.core.builder.BatchImageBuilder.java
License:Open Source License
protected void processAnnotationResults(CompilationParticipantResult[] results) { // to compile the compilation participant results, we need to incrementally recompile all affected types // whenever the generated types are initially added or structurally changed if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); this.incrementalBuilder.processAnnotationResults(results); }
From source file:org.eclipse.jdt.internal.core.builder.BatchImageBuilder.java
License:Open Source License
protected void rebuildTypesAffectedBySecondaryTypes() { // to compile types that could not find 'missing' secondary types because of multiple // compile groups, we need to incrementally recompile all affected types as if the missing // secondary types have just been added, see bug 146324 if (this.incrementalBuilder == null) this.incrementalBuilder = new IncrementalImageBuilder(this); int count = this.secondaryTypes.size(); StringSet qualifiedNames = new StringSet(count * 2); StringSet simpleNames = new StringSet(count); StringSet rootNames = new StringSet(3); while (--count >= 0) { char[] secondaryTypeName = (char[]) this.secondaryTypes.get(count); IPath path = new Path(null, new String(secondaryTypeName)); this.incrementalBuilder.addDependentsOf(path, false, qualifiedNames, simpleNames, rootNames); }/* w ww . ja v a2 s . c om*/ this.incrementalBuilder.addAffectedSourceFiles(qualifiedNames, simpleNames, rootNames, this.typeLocatorsWithUndefinedTypes); }