public boolean ignoreOptionalProblems() {
return false;
}
};
CompletionEngine engine = new CompletionEngine(environment, mapper.getCompletionRequestor(requestor), options, project, owner, monitor);
if (this.installedVars != null) {
IBinaryType binaryType = getRootCodeSnippetBinary();
if (binaryType != null) {
engine.lookupEnvironment.cacheBinaryType(binaryType, null /*no access restriction*/);
}
ClassFile[] classFiles = this.installedVars.classFiles;
for (int i = 0; i < classFiles.length; i++) {
ClassFile classFile = classFiles[i];
IBinaryType binary = null;
try {
binary = new ClassFileReader(classFile.getBytes(), null);
} catch (ClassFormatException e) {
e.printStackTrace(); // Should never happen since we compiled this type
}
engine.lookupEnvironment.cacheBinaryType(binary, null /*no access restriction*/);
}
}
engine.complete(sourceUnit, mapper.startPosOffset + completionPosition, mapper.startPosOffset, null/*extended context isn't computed*/);
}