JspUIPlugin.log("internal error", e);
	protected void indexFile(IDocument document) throws IOException {			// Add the name of the file to the index		output.addDocument(document);			// Create a new Parser		SourceIndexerRequestor requestor = new SourceIndexerRequestor(this, document);		SourceElementParser parser = new SourceElementParser(			requestor, 			problemFactory, 			new CompilerOptions(JavaCore.create(fResourceFile.getProject()).getOptions(true)), 			true); // index local declarations			// Launch the parser		char[] source = null;		char[] name = null;		try {			source = document.getCharContent();			name = document.getName().toCharArray();		} catch(Exception e){		}		if (source == null || name == null) return; // could not retrieve document info (e.g. resource was discarded)		CompilationUnit compilationUnit = new CompilationUnit(source, name);		try {			parser.parseCompilationUnit(compilationUnit, true/*full parse*/);		} catch (Exception e) {			e.printStackTrace();		}	}