}
monitor.worked(3);
// If we have found the processed project,
if (javaProject != null) {
// Then we parse the processed code section
ASTParser parser = ASTParser.newParser(AST.JLS3);
parser.setProject(javaProject);
parser.setResolveBindings(true);
char[] charArray = new char[buffer.length()];
buffer.getChars(0, buffer.length(), charArray, 0);
parser.setUnitName(javaProject.getElementName());
parser.setSource(charArray);
monitor.worked(4);
CompilationUnit result =
(CompilationUnit)parser.createAST(null);
monitor.worked(5);
List<?> types = result.types();
for(int i=0 ; i<types.size() ; i++) {
ASTNode node = (ASTNode)types.get(i);
if(node instanceof TypeDeclaration) {